Beispiel #1
0
 def test_get_certificate(self, mock_key_manager_API, mock_load_cert):
     cert_uuid = 'valid_format_cert'
     x509_cert = FakeCryptoCertificate()
     mock_load_cert.return_value = x509_cert
     self.assertEqual(x509_cert,
                      signature_utils.get_certificate(None, cert_uuid))
 def test_get_certificate(self, mock_key_manager_API, mock_load_cert):
     cert_uuid = 'valid_format_cert'
     x509_cert = FakeCryptoCertificate()
     mock_load_cert.return_value = x509_cert
     self.assertEqual(x509_cert,
                      signature_utils.get_certificate(None, cert_uuid))