parameters: (self)
docstring: Remove root CA generated by previous call to InstallTestCa().
  
      Removes the test root certificate from both the device and host machine.
docstring_summary: Remove root CA generated by previous call to InstallTestCa().
docstring_tokens: Remove root CA generated by previous call to InstallTestCa () .
function: def _RemoveTestCa(self):
      """Remove root CA generated by previous call to InstallTestCa().
  
      Removes the test root certificate from both the device and host machine.
      """
      print 'Cleaning up test CA...'
      if not self._wpr_ca_cert_path:
        return
  
      if self._is_test_ca_installed:
        try:
          self._device_cert_util.remove_cert()
        except Exception:
          # Best effort cleanup - show the error and continue.
          logging.error(
              'Error while trying to remove certificate authority: %s. '
              % self._adb.device_serial())
        self._is_test_ca_installed = False
  
      shutil.rmtree(os.path.dirname(self._wpr_ca_cert_path), ignore_errors=True)
      self._wpr_ca_cert_path = None
      self._device_cert_util = None
function_tokens: def _RemoveTestCa ( self ) : print 'Cleaning up test CA...' if not self . _wpr_ca_cert_path : return if self . _is_test_ca_installed : try : self . _device_cert_util . remove_cert ( ) except Exception : # Best effort cleanup - show the error and continue. logging . error ( 'Error while trying to remove certificate authority: %s. ' % self . _adb . device_serial ( ) ) self . _is_test_ca_installed = False shutil . rmtree ( os . path . dirname ( self . _wpr_ca_cert_path ) , ignore_errors = True ) self . _wpr_ca_cert_path = None self . _device_cert_util = None