MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_is_ca

Method test_is_ca

test/mitmproxy/test_certs.py:358–361  ·  view source on GitHub ↗
(self, tdata, filename, is_ca)

Source from the content-addressed store, hash-verified

356 ],
357 )
358 def test_is_ca(self, tdata, filename, is_ca):
359 pem = Path(tdata.path(filename)).read_bytes()
360 cert = certs.Cert.from_pem(pem)
361 assert cert.is_ca == is_ca
362
363 def test_err_broken_sans(self, tdata):
364 with open(tdata.path("mitmproxy/net/data/text_cert_weird1"), "rb") as f:

Callers

nothing calls this directly

Calls 3

PathClass · 0.85
from_pemMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected