def testIsSignedBy(self):
    self.mox.StubOutWithMock(self.x, '_StrToArray')
    self.mox.StubOutWithMock(self.x, 'GetSignatureData')
    self.mox.StubOutWithMock(self.x, 'GetFieldsData')
    mock_othercert = self.mox.CreateMockAnything()

    mock_othercert.GetMayActAsCA().AndReturn(True)
    mock_othercert.GetPublicKey().AndReturn(mock_othercert)  # lazy re-use
    self.x.GetSignatureData().AndReturn('sigdata')
    self.x.GetFieldsData().AndReturn('fieldsdata')
    self.x._StrToArray('sigdata').AndReturn('arysigdata')
    self.x._StrToArray('fieldsdata').AndReturn('aryfieldsdata')
    mock_othercert.hashAndVerify('arysigdata', 'aryfieldsdata').AndReturn(True)

    self.mox.ReplayAll()
    self.assertTrue(self.x.IsSignedBy(mock_othercert))
    self.mox.VerifyAll()
General Eigenproblem solver.
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testIsSignedBy--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cula.py/culaDeviceCgeev