aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2014-12-24 01:39:38 +0100
committerMaximilian Hils <git@maximilianhils.com>2014-12-24 01:39:38 +0100
commitf265cff3a93f13ce2b16493bd03b336757513a56 (patch)
tree129bee192c37332ca1665a80a39a6b489a016056 /test/test_flow.py
parent1c4f4c2494a97d0088e48405c1f8f4f48846f180 (diff)
downloadmitmproxy-f265cff3a93f13ce2b16493bd03b336757513a56.tar.gz
mitmproxy-f265cff3a93f13ce2b16493bd03b336757513a56.tar.bz2
mitmproxy-f265cff3a93f13ce2b16493bd03b336757513a56.zip
fix tests, experimental travis speedup
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 764b9f24..6230ad73 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -274,7 +274,9 @@ class TestFlow:
f2 = f.copy()
a = f.get_state()
b = f2.get_state()
- assert f.get_state() == f2.get_state()
+ del a["id"]
+ del b["id"]
+ assert a == b
assert not f == f2
assert not f is f2
assert f.request.get_state() == f2.request.get_state()
@@ -333,6 +335,7 @@ class TestFlow:
assert f.get_state() == protocol.http.HTTPFlow.from_state(state).get_state()
f2 = f.copy()
+ f2.id = f.id # copy creates a different uuid
assert f.get_state() == f2.get_state()
assert not f == f2
f2.error = Error("e2")