MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / test_load_http_flow_reverse

Method test_load_http_flow_reverse

test/mitmproxy/test_flow.py:119–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

117
118class TestFlowMaster:
119 async def test_load_http_flow_reverse(self):
120 opts = options.Options(mode=["reverse:https://use-this-domain"])
121 s = State()
122 with taddons.context(s, options=opts) as ctx:
123 f = tflow.tflow(resp=True)
124 await ctx.master.load_flow(f)
125 assert s.flows[0].request.host == "use-this-domain"
126
127 async def test_all(self):
128 opts = options.Options(mode=["reverse:https://use-this-domain"])

Callers

nothing calls this directly

Calls 3

contextMethod · 0.80
StateClass · 0.70
load_flowMethod · 0.45

Tested by

no test coverage detected