MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_is_killed

Method test_is_killed

test/mitmproxy/addons/test_mapremote.py:40–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 assert f.request.headers.get("Host", "") == "example.com:4444"
39
40 def test_is_killed(self):
41 mr = mapremote.MapRemote()
42 with taddons.context(mr) as tctx:
43 tctx.configure(mr, map_remote=[":example.org:mitmproxy.org"])
44 f = tflow.tflow()
45 f.request.url = b"https://example.org/images/test.jpg"
46 f.kill()
47 mr.request(f)
48 assert f.request.url == "https://example.org/images/test.jpg"

Callers

nothing calls this directly

Calls 4

requestMethod · 0.95
contextMethod · 0.80
configureMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected