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 init_app is called when an app is passed in the constructor
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testCheckIssuerWhenFailed--crossover with--dataset/ETHPy150Open dtheodor/flask-sqlalchemy-session/tests/test_flask_sqlalchemy_session.py/test_constructor