MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_parse_cert_CVE_2019_5010

Method test_parse_cert_CVE_2019_5010

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

Source from the content-addressed store, hash-verified

429 ('http://SVRIntl-G3-crl.verisign.com/SVRIntlG3.crl',))
430
431 def test_parse_cert_CVE_2019_5010(self):
432 p = ssl._ssl._test_decode_cert(TALOS_INVALID_CRLDP)
433 if support.verbose:
434 sys.stdout.write("\n" + pprint.pformat(p) + "\n")
435 self.assertEqual(
436 p,
437 {
438 'issuer': (
439 (('countryName', 'UK'),), (('commonName', 'cody-ca'),)),
440 'notAfter': 'Jun 14 18:00:58 2028 GMT',
441 'notBefore': 'Jun 18 18:00:58 2018 GMT',
442 'serialNumber': '02',
443 'subject': ((('countryName', 'UK'),),
444 (('commonName',
445 'codenomicon-vm-2.test.lal.cisco.com'),)),
446 'subjectAltName': (
447 ('DNS', 'codenomicon-vm-2.test.lal.cisco.com'),),
448 'version': 3
449 }
450 )
451
452 def test_parse_cert_CVE_2013_4238(self):
453 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