(self)
| 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" |