def testCheckIssuerWhenFailed(self):
    self.x._required_issuer = None
    self.x._cert['issuer'] = 'required'
    self.mox.ReplayAll()
    self.assertRaises(
        x509.CertificateValueError,
        self.x.CheckIssuer, 'some other issuer')
    self.mox.VerifyAll()
Test CheckIssuer().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testCheckIssuerWhenFailed