def testGivenPrivateKey(self):
    cert_filename = testutils.TestDataFilename('cert2.pem')
    cert_pem = utils.ReadFile(cert_filename)
    self.assertRaises(_JoinError, common._VerifyCertificateSoft, cert_pem, _JoinError, _check_fn=NotImplemented)
def testGivenPrivateKey(self):
    cert_filename = testutils.TestDataFilename('cert2.pem')
    cert_pem = utils.ReadFile(cert_filename)
    self.assertRaises(_JoinError, common._VerifyCertificateSoft, cert_pem, _JoinError, _check_fn=NotImplemented)