mitmproxy/test/mitmproxy/test_script.py
Thomas Kriechbaumer e2447406cc more style cleanup
2016-05-29 13:43:20 +02:00

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