mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
14 lines
383 B
Python
14 lines
383 B
Python
from mitmproxy import flow
|
|
from . import tutils
|
|
|
|
|
|
def test_duplicate_flow():
|
|
s = flow.State()
|
|
fm = flow.FlowMaster(None, s)
|
|
fm.load_script(tutils.test_data.path("data/scripts/duplicate_flow.py"))
|
|
f = tutils.tflow()
|
|
fm.request(f)
|
|
assert fm.state.flow_count() == 2
|
|
assert not fm.state.view[0].request.is_replay
|
|
assert fm.state.view[1].request.is_replay
|