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

Method test_port

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

Source from the content-addressed store, hash-verified

160 _test_decoded_attr(treq(), "scheme")
161
162 def test_port(self):
163 _test_passthrough_attr(treq(), "port", 1234)
164 with pytest.raises(ValueError):
165 treq().port = "foo"
166
167 def test_path(self):
168 _test_decoded_attr(treq(), "path")

Callers

nothing calls this directly

Calls 2

treqFunction · 0.90
_test_passthrough_attrFunction · 0.85

Tested by

no test coverage detected