def test_translate_certificate_view(self): pk, cert = fake_create_cert(self.context) view = certificates._translate_certificate_view(cert, pk) self.assertEqual(view['data'], cert) self.assertEqual(view['private_key'], pk)
def test_translate_certificate_view(self): pk, cert = 'fakepk', 'fakecert' view = certificates._translate_certificate_view(cert, pk) self.assertEqual(view['data'], cert) self.assertEqual(view['private_key'], pk)