MCPcopy Index your code
hub / github.com/python/cpython / test_parse_cert_CVE_2019_5010

Method test_parse_cert_CVE_2019_5010

Lib/test/test_ssl.py:512–531  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510 ('http://SVRIntl-G3-crl.verisign.com/SVRIntlG3.crl',))
511
512 def test_parse_cert_CVE_2019_5010(self):
513 p = ssl._ssl._test_decode_cert(TALOS_INVALID_CRLDP)
514 if support.verbose:
515 sys.stdout.write("\n" + pprint.pformat(p) + "\n")
516 self.assertEqual(
517 p,
518 {
519 'issuer': (
520 (('countryName', 'UK'),), (('commonName', 'cody-ca'),)),
521 'notAfter': 'Jun 14 18:00:58 2028 GMT',
522 'notBefore': 'Jun 18 18:00:58 2018 GMT',
523 'serialNumber': '02',
524 'subject': ((('countryName', 'UK'),),
525 (('commonName',
526 'codenomicon-vm-2.test.lal.cisco.com'),)),
527 'subjectAltName': (
528 ('DNS', 'codenomicon-vm-2.test.lal.cisco.com'),),
529 'version': 3
530 }
531 )
532
533 def test_parse_cert_CVE_2013_4238(self):
534 p = ssl._ssl._test_decode_cert(NULLBYTECERT)

Callers

nothing calls this directly

Calls 3

pformatMethod · 0.80
writeMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected