aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-01-31 03:01:51 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-01-31 03:01:51 +0100
commit7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032 (patch)
tree28ff60b0d106822ff45803c4af8788d2f9173b7c /test/test_flow.py
parent30a44cbb41fab51a30e609ba6318e1e8c062f73a (diff)
downloadmitmproxy-7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032.tar.gz
mitmproxy-7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032.tar.bz2
mitmproxy-7d96ff00efd80b11ab35f7f1c9c7dd6aff9c9032.zip
remove _flow_map from state, improve logging
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index aec04152..42118e36 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -355,23 +355,19 @@ class TestState:
f = c.add_request(req)
assert f
assert c.flow_count() == 1
- assert c._flow_map.get(req)
assert c.active_flow_count() == 1
newreq = tutils.treq()
assert c.add_request(newreq)
- assert c._flow_map.get(newreq)
assert c.active_flow_count() == 2
resp = tutils.tresp(req)
assert c.add_response(resp)
assert c.flow_count() == 2
- assert c._flow_map.get(resp.request)
assert c.active_flow_count() == 1
unseen_resp = tutils.tresp()
assert not c.add_response(unseen_resp)
- assert not c._flow_map.get(unseen_resp.request)
assert c.active_flow_count() == 1
resp = tutils.tresp(newreq)