MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_repr

Method test_repr

test/mitmproxy/test_http.py:486–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

484 """
485
486 def test_repr(self):
487 response = tresp()
488 assert repr(response) == "Response(200, unknown content type, 7b)"
489 response.content = None
490 assert repr(response) == "Response(200, no content)"
491
492 def test_make(self):
493 r = Response.make()

Callers

nothing calls this directly

Calls 1

trespFunction · 0.90

Tested by

no test coverage detected