Lines Matching refs:_ASN1Object
621 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
627 self.assertIsInstance(val, ssl._ASN1Object)
628 self.assertRaises(ValueError, ssl._ASN1Object, 'serverAuth')
630 val = ssl._ASN1Object.fromnid(129)
632 self.assertIsInstance(val, ssl._ASN1Object)
633 self.assertRaises(ValueError, ssl._ASN1Object.fromnid, -1)
635 ssl._ASN1Object.fromnid(100000)
638 obj = ssl._ASN1Object.fromnid(i)
647 val = ssl._ASN1Object.fromname('TLS Web Server Authentication')
649 self.assertIsInstance(val, ssl._ASN1Object)
650 self.assertEqual(ssl._ASN1Object.fromname('serverAuth'), expected)
651 self.assertEqual(ssl._ASN1Object.fromname('1.3.6.1.5.5.7.3.1'),
654 ssl._ASN1Object.fromname('serverauth')
657 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.1')
658 self.assertIsInstance(ssl.Purpose.SERVER_AUTH, ssl._ASN1Object)
665 val = ssl._ASN1Object('1.3.6.1.5.5.7.3.2')
666 self.assertIsInstance(ssl.Purpose.CLIENT_AUTH, ssl._ASN1Object)