From 6bcf29c0ed39904cd28cf9ab97fa75c5c0f4d32c Mon Sep 17 00:00:00 2001 From: Eric Entzel Date: Mon, 11 Feb 2013 13:22:25 +1100 Subject: Keep blank URL parameters TODO: This should probably be configurable --- test/test_console_contentview.py | 4 +++- test/test_flow.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_console_contentview.py b/test/test_console_contentview.py index 8a5dabb8..77178842 100644 --- a/test/test_console_contentview.py +++ b/test/test_console_contentview.py @@ -58,7 +58,9 @@ class TestContentView: d = utils.urlencode([("one", "two"), ("three", "four")]) v = cv.ViewURLEncoded() assert v([], d, 100) - assert not v([], "foo", 100) + d = utils.urlencode([("adsfa", "")]) + v = cv.ViewURLEncoded() + assert v([], d, 100) def test_view_html(self): v = cv.ViewHTML() diff --git a/test/test_flow.py b/test/test_flow.py index da5b095e..0c713c03 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -807,7 +807,7 @@ class TestRequest: r = flow.Request(None, (1, 1), "host", 22, "https", "GET", "/?adsfa", h, "content") q = r.get_query() - assert not q + assert q.lst == [("adsfa", "")] r = flow.Request(None, (1, 1), "host", 22, "https", "GET", "/foo?x=y&a=b", h, "content") assert r.get_query() -- cgit v1.2.3