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

Method test_unknown_ce

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

Source from the content-addressed store, hash-verified

1014 r.content = "foo"
1015
1016 def test_unknown_ce(self):
1017 r = tresp()
1018 r.headers["content-encoding"] = "zopfli"
1019 r.raw_content = b"foo"
1020 with pytest.raises(ValueError):
1021 assert r.content
1022 assert r.headers["content-encoding"]
1023 assert r.get_content(strict=False) == b"foo"
1024
1025 def test_utf8_as_ce(self):
1026 r = tresp()

Callers

nothing calls this directly

Calls 2

trespFunction · 0.90
get_contentMethod · 0.80

Tested by

no test coverage detected