def testGetSignatureAlgorithmFromSequenceWhenBadOID(self):
    alg = (5, 4, 3, 2, 1)  # fake OID
    self.assertFalse(alg in self.x.SIGNATURE_ALGORITHMS)
    seq = (alg, '')
    self.assertRaises(
        x509.CertificateValueError,
        self.x._GetSignatureAlgorithmFromSequence, seq)
Test _GetSignatureAlgorithmFromSequence().
dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testGetSignatureAlgorithmFromSequenceWhenBadOID