MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_simple

Method test_simple

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

Source from the content-addressed store, hash-verified

982
983class TestMessageContentEncoding:
984 def test_simple(self):
985 r = tresp()
986 assert r.raw_content == b"message"
987 assert "content-encoding" not in r.headers
988 r.encode("gzip")
989
990 assert r.headers["content-encoding"]
991 assert r.raw_content != b"message"
992 assert r.content == b"message"
993 assert r.raw_content != b"message"
994
995 def test_update_content_length_header(self):
996 r = tresp()

Callers

nothing calls this directly

Calls 2

trespFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected