From fa11b7c9be7cb41f422e2be26c0673fbe371ce55 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 20 Feb 2012 10:44:47 +1300 Subject: Use ODict for Request.get_query and Request.set_query --- test/test_flow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') 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 -- cgit v1.2.3