def test_create_key(self): """ Test that x509.create_key returns a private key :return: """ ret = x509.create_private_key(text=True, passphrase="super_secret_passphrase") self.assertIn("BEGIN RSA PRIVATE KEY", ret)
def test_create_key(self): ''' Test that x509.create_key returns a private key :return: ''' ret = x509.create_private_key(text=True, passphrase='super_secret_passphrase') self.assertIn(b'BEGIN RSA PRIVATE KEY', ret)