def testIsSignedByWhenOtherCertNotCA(self):
    mock_othercert = self.mox.CreateMockAnything()
    mock_othercert.GetMayActAsCA().AndReturn(False)

    self.mox.ReplayAll()
    self.assertRaises(
        x509.CertificateValueError,
        self.x.IsSignedBy, mock_othercert)
    self.mox.VerifyAll()
Test IsSignedBy().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testIsSignedByWhenOtherCertNotCA