parameters: (self)
docstring: Generates and deploys a test certificate authority.
docstring_summary: Generates and deploys a test certificate authority.
docstring_tokens: Generates and deploys a test certificate authority .
function: def _InstallTestCa(self):
      """Generates and deploys a test certificate authority."""
      print 'Installing test certificate authority on device: %s' % (
          self._device.adb.GetDeviceSerial())
      self._wpr_ca_cert_path = os.path.join(tempfile.mkdtemp(), 'testca.pem')
      certutils.write_dummy_ca_cert(*certutils.generate_dummy_ca_cert(),
                                    cert_path=self._wpr_ca_cert_path)
      self._device_cert_util = adb_install_cert.AndroidCertInstaller(
          self._device.adb.GetDeviceSerial(), None, self._wpr_ca_cert_path)
      self._device_cert_util.install_cert(overwrite_cert=True)
      self._is_test_ca_installed = True
function_tokens: def _InstallTestCa ( self ) : print 'Installing test certificate authority on device: %s' % ( self . _device . adb . GetDeviceSerial ( ) ) self . _wpr_ca_cert_path = os . path . join ( tempfile . mkdtemp ( ) , 'testca.pem' ) certutils . write_dummy_ca_cert ( * certutils . generate_dummy_ca_cert ( ) , cert_path = self . _wpr_ca_cert_path ) self . _device_cert_util = adb_install_cert . AndroidCertInstaller ( self . _device . adb . GetDeviceSerial ( ) , None , self . _wpr_ca_cert_path ) self . _device_cert_util . install_cert ( overwrite_cert = True ) self . _is_test_ca_installed = True