コード例 #1
0
ファイル: test_keypairs.py プロジェクト: hsluoyz/patron
 def test_success_x509(self):
     self.keypair_type = keypair_obj.KEYPAIR_TYPE_X509
     certif, fingerprint = fake_crypto.get_x509_cert_and_fingerprint()
     self.pub_key = certif
     self.fingerprint = fingerprint
     self._check_success()
コード例 #2
0
ファイル: test_keypairs.py プロジェクト: 2Exception/patron
 def test_keypairs_import_key_post_x509(self):
     public_key = fake_crypto.get_x509_cert_and_fingerprint()[0]
     public_key = public_key.replace('\n', '\\n')
     self._check_keypairs_import_key_post(
         public_key, keypair_type=keypair_obj.KEYPAIR_TYPE_X509)
コード例 #3
0
 def test_success_x509(self):
     self.keypair_type = keypair_obj.KEYPAIR_TYPE_X509
     certif, fingerprint = fake_crypto.get_x509_cert_and_fingerprint()
     self.pub_key = certif
     self.fingerprint = fingerprint
     self._check_success()