Lines Matching refs:_ASN1Object
982 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
988 self.assertIsInstance(val, ssl._ASN1Object)
989 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
991 val = ssl._ASN1Object.fromnid(129)
993 self.assertIsInstance(val, ssl._ASN1Object)
994 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
996 ssl._ASN1Object.fromnid(100000)
999 obj = ssl._ASN1Object.fromnid(i)
1008 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
1010 self.assertIsInstance(val, ssl._ASN1Object)
1011 self.assertEqual(ssl._ASN1Object.fromname('serverAuth'), expected)
1012 self.assertEqual(ssl._ASN1Object.fromname('1.3.6.1.5.5.7.3.1'),
1015 ssl._ASN1Object.fromname('serverauth')
1018 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
1019 self.assertIsInstance(ssl.Purpose.SERVER_AUTH, ssl._ASN1Object)
1026 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.2')
1027 self.assertIsInstance(ssl.Purpose.CLIENT_AUTH, ssl._ASN1Object)