MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_special_character

Method test_special_character

test/mitmproxy/test_certs.py:464–470  ·  view source on GitHub ↗
(self, tdata)

Source from the content-addressed store, hash-verified

462 assert "is a certificate authority and not a leaf certificate" in caplog.text
463
464 def test_special_character(self, tdata):
465 with open(tdata.path("mitmproxy/net/data/text_cert_with_comma"), "rb") as f:
466 d = f.read()
467 c = certs.Cert.from_pem(d)
468
469 assert dict(c.issuer).get("O") == "DigiCert, Inc."
470 assert dict(c.subject).get("O") == "GitHub, Inc."
471
472 def test_multi_valued_rdns(self, tdata):
473 subject = x509.Name(

Callers

nothing calls this directly

Calls 4

from_pemMethod · 0.80
pathMethod · 0.45
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected