aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-07-28 18:00:49 +1200
committerAldo Cortesi <aldo@nullcube.com>2013-07-28 18:00:49 +1200
commit10a9e3365fbfc0b0b789385a3a212ca01d332ab1 (patch)
treee954747192fd407cbb5d507733867c801331f227 /test
parent10b744ee0810b56143d5dbca79eaaca94ab0e21e (diff)
downloadmitmproxy-10a9e3365fbfc0b0b789385a3a212ca01d332ab1.tar.gz
mitmproxy-10a9e3365fbfc0b0b789385a3a212ca01d332ab1.tar.bz2
mitmproxy-10a9e3365fbfc0b0b789385a3a212ca01d332ab1.zip
Some refactoring of the console inteface.
Reduce some state duplication, by removing currentflow variable. Fixes #141
Diffstat (limited to 'test')
-rw-r--r--test/test_flow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 977cdd4e..32cfb0ca 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -591,7 +591,7 @@ class TestFlowMaster:
s = flow.State()
fm = flow.FlowMaster(None, s)
f = tutils.tflow_full()
- fm.load_flow(f)
+ f = fm.load_flow(f)
assert s.flow_count() == 1
f2 = fm.duplicate_flow(f)
assert f2.response