'When called on a certificate with no public key, :py:obj:`X509.get_pubkey`
raises :py:obj:`OpenSSL.crypto.Error`.'

def test_get_pubkey_uninitialized(self):

    cert = X509()
    self.assertRaises(Error, cert.get_pubkey)
