Capacitor air tightness detection method