Lines Matching refs:_ASN1Object
946 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
952 self.assertIsInstance(val, ssl._ASN1Object)
953 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
955 val = ssl._ASN1Object.fromnid(129)
957 self.assertIsInstance(val, ssl._ASN1Object)
958 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
960 ssl._ASN1Object.fromnid(100000)
963 obj = ssl._ASN1Object.fromnid(i)
972 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
974 self.assertIsInstance(val, ssl._ASN1Object)
975 self.assertEqual(ssl._ASN1Object.fromname('serverAuth'), expected)
976 self.assertEqual(ssl._ASN1Object.fromname('1.3.6.1.5.5.7.3.1'),
979 ssl._ASN1Object.fromname('serverauth')
982 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
983 self.assertIsInstance(ssl.Purpose.SERVER_AUTH, ssl._ASN1Object)
990 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.2')
991 self.assertIsInstance(ssl.Purpose.CLIENT_AUTH, ssl._ASN1Object)