aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flow.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-02-20 10:44:47 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-02-20 10:44:47 +1300
commitfa11b7c9be7cb41f422e2be26c0673fbe371ce55 (patch)
tree489d40218b49b707477f4ac301c0ca5facc56b83 /test/test_flow.py
parent2616f490fee1b732aa0853318d67a550fc561cc4 (diff)
downloadmitmproxy-fa11b7c9be7cb41f422e2be26c0673fbe371ce55.tar.gz
mitmproxy-fa11b7c9be7cb41f422e2be26c0673fbe371ce55.tar.bz2
mitmproxy-fa11b7c9be7cb41f422e2be26c0673fbe371ce55.zip
Use ODict for Request.get_query and Request.set_query
Diffstat (limited to 'test/test_flow.py')
-rw-r--r--test/test_flow.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_flow.py b/test/test_flow.py
index 250127a9..ab92d130 100644
--- a/test/test_flow.py
+++ b/test/test_flow.py
@@ -657,7 +657,7 @@ class uRequest(libpry.AutoTree):
r = flow.Request(None, "host", 22, "https", "GET", "/foo?x=y&a=b", h, "content")
q = r.get_query()
- assert q == [("x", "y"), ("a", "b")]
+ assert q.lst == [("x", "y"), ("a", "b")]
r = flow.Request(None, "host", 22, "https", "GET", "/", h, "content")
q = r.get_query()
@@ -669,9 +669,9 @@ class uRequest(libpry.AutoTree):
r = flow.Request(None, "host", 22, "https", "GET", "/foo?x=y&a=b", h, "content")
assert r.get_query()
- r.set_query([])
+ r.set_query(flow.ODict([]))
assert not r.get_query()
- qv = [("a", "b"), ("c", "d")]
+ qv = flow.ODict([("a", "b"), ("c", "d")])
r.set_query(qv)
assert r.get_query() == qv