aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_contentview.py
diff options
context:
space:
mode:
authorEric Entzel <eric@ubermac.net>2013-02-11 13:22:25 +1100
committerEric Entzel <eric@ubermac.net>2013-02-11 13:22:25 +1100
commit6bcf29c0ed39904cd28cf9ab97fa75c5c0f4d32c (patch)
tree24d1f3e09e4fe9e333254cf03795c4af16821ba7 /test/test_console_contentview.py
parent53792a5a28df80552fdbedee3b88f204d94ad9ce (diff)
downloadmitmproxy-6bcf29c0ed39904cd28cf9ab97fa75c5c0f4d32c.tar.gz
mitmproxy-6bcf29c0ed39904cd28cf9ab97fa75c5c0f4d32c.tar.bz2
mitmproxy-6bcf29c0ed39904cd28cf9ab97fa75c5c0f4d32c.zip
Keep blank URL parameters
TODO: This should probably be configurable
Diffstat (limited to 'test/test_console_contentview.py')
-rw-r--r--test/test_console_contentview.py4
1 files changed, 3 insertions, 1 deletions
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()