Lines Matching refs:_ASN1Object
871 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
877 self.assertIsInstance(val, ssl._ASN1Object)
878 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
880 val = ssl._ASN1Object.fromnid(129)
882 self.assertIsInstance(val, ssl._ASN1Object)
883 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
885 ssl._ASN1Object.fromnid(100000)
888 obj = ssl._ASN1Object.fromnid(i)
897 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
899 self.assertIsInstance(val, ssl._ASN1Object)
900 self.assertEqual(ssl._ASN1Object.fromname('serverAuth'), expected)
901 self.assertEqual(ssl._ASN1Object.fromname('1.3.6.1.5.5.7.3.1'),
904 ssl._ASN1Object.fromname('serverauth')
907 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
908 self.assertIsInstance(ssl.Purpose.SERVER_AUTH, ssl._ASN1Object)
915 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.2')
916 self.assertIsInstance(ssl.Purpose.CLIENT_AUTH, ssl._ASN1Object)