':py:obj:`PKCS12.export` raises an exception when a key and certificate
mismatch.'

def test_key_cert_mismatch(self):

    p12 = self.gen_pkcs12(server_cert_pem, client_key_pem, root_cert_pem)
    self.assertRaises(Error, p12.export)
