(self, tdata)
| 56 | assert f.request.host == "mitmproxy.org" |
| 57 | |
| 58 | def test_send_reply_from_proxy(self, tdata): |
| 59 | with taddons.context() as tctx: |
| 60 | sc = tctx.script(tdata.path("../examples/addons/http-reply-from-proxy.py")) |
| 61 | f = tflow.tflow(req=tutils.treq(host="example.com", port=80)) |
| 62 | sc.request(f) |
| 63 | assert f.response.content == b"Hello World" |