aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-02-05 17:52:59 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-02-05 17:52:59 +0100
commit64729427568fbed9712557f0f1ee4e8ad994ab66 (patch)
treecba762df78930f2b11a449dfda681eb1845fdefc
parentf215c3712ded010a20f73af78617a2d3c248b1bd (diff)
downloadmitmproxy-64729427568fbed9712557f0f1ee4e8ad994ab66.tar.gz
mitmproxy-64729427568fbed9712557f0f1ee4e8ad994ab66.tar.bz2
mitmproxy-64729427568fbed9712557f0f1ee4e8ad994ab66.zip
fix tests
-rw-r--r--test/test_console_contentview.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/test_console_contentview.py b/test/test_console_contentview.py
index abc762fa..44378cf7 100644
--- a/test/test_console_contentview.py
+++ b/test/test_console_contentview.py
@@ -190,7 +190,8 @@ Larry
[["content-type", "application/json"]],
"[1, 2, 3]",
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert "Raw" in r[0]
@@ -199,7 +200,8 @@ Larry
[["content-type", "application/json"]],
"[1, 2, 3]",
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert r[0] == "JSON"
@@ -208,7 +210,8 @@ Larry
[["content-type", "application/json"]],
"[1, 2",
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert "Raw" in r[0]
@@ -217,7 +220,8 @@ Larry
[],
"[1, 2",
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert "Raw" in r[0]
@@ -230,7 +234,8 @@ Larry
],
encoding.encode('gzip', "[1, 2, 3]"),
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert "decoded gzip" in r[0]
assert "JSON" in r[0]
@@ -243,7 +248,8 @@ Larry
],
encoding.encode('gzip', "[1, 2, 3]"),
1000,
- lambda x, l: None
+ lambda x, l: None,
+ False
)
assert "decoded gzip" in r[0]
assert "Raw" in r[0]