aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/test_flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-10-19 12:37:32 +1300
committerAldo Cortesi <aldo@nullcube.com>2016-10-19 12:37:32 +1300
commit264a09e7789500673282075b2f5b9956268f0cea (patch)
tree31199e39c194f08982e554e5d1621d035a7affae /test/mitmproxy/test_flow.py
parentda8dec982373b5137c5700818505887fe0249e98 (diff)
downloadmitmproxy-264a09e7789500673282075b2f5b9956268f0cea.tar.gz
mitmproxy-264a09e7789500673282075b2f5b9956268f0cea.tar.bz2
mitmproxy-264a09e7789500673282075b2f5b9956268f0cea.zip
Let's dispense with this fiction that we support multiple servers
It's simple enough to re-add if needed, and until then is just cruft.
Diffstat (limited to 'test/mitmproxy/test_flow.py')
-rw-r--r--test/mitmproxy/test_flow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mitmproxy/test_flow.py b/test/mitmproxy/test_flow.py
index 4531cc5d..ab181357 100644
--- a/test/mitmproxy/test_flow.py
+++ b/test/mitmproxy/test_flow.py
@@ -363,7 +363,7 @@ class TestSerialize:
def test_load_flows(self):
r = self._treader()
s = flow.State()
- fm = flow.FlowMaster(None, None)
+ fm = flow.FlowMaster(None, DummyServer())
fm.addons.add(s)
fm.load_flows(r)
assert len(s.flows) == 6
@@ -423,7 +423,7 @@ class TestSerialize:
class TestFlowMaster:
def test_replay(self):
- fm = flow.FlowMaster(None, None)
+ fm = flow.FlowMaster(None, DummyServer())
f = tutils.tflow(resp=True)
f.request.content = None
tutils.raises("missing", fm.replay_request, f)
@@ -435,12 +435,12 @@ class TestFlowMaster:
tutils.raises("live", fm.replay_request, f)
def test_create_flow(self):
- fm = flow.FlowMaster(None, None)
+ fm = flow.FlowMaster(None, DummyServer())
assert fm.create_request("GET", "http", "example.com", 80, "/")
def test_all(self):
s = flow.State()
- fm = flow.FlowMaster(None, None)
+ fm = flow.FlowMaster(None, DummyServer())
fm.addons.add(s)
f = tutils.tflow(req=None)
fm.clientconnect(f.client_conn)