fix tests

This commit is contained in:
Maximilian Hils 2015-02-05 17:52:59 +01:00
parent f215c3712d
commit 6472942756

View File

@ -190,7 +190,8 @@ Larry
[["content-type", "application/json"]], [["content-type", "application/json"]],
"[1, 2, 3]", "[1, 2, 3]",
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert "Raw" in r[0] assert "Raw" in r[0]
@ -199,7 +200,8 @@ Larry
[["content-type", "application/json"]], [["content-type", "application/json"]],
"[1, 2, 3]", "[1, 2, 3]",
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert r[0] == "JSON" assert r[0] == "JSON"
@ -208,7 +210,8 @@ Larry
[["content-type", "application/json"]], [["content-type", "application/json"]],
"[1, 2", "[1, 2",
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert "Raw" in r[0] assert "Raw" in r[0]
@ -217,7 +220,8 @@ Larry
[], [],
"[1, 2", "[1, 2",
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert "Raw" in r[0] assert "Raw" in r[0]
@ -230,7 +234,8 @@ Larry
], ],
encoding.encode('gzip', "[1, 2, 3]"), encoding.encode('gzip', "[1, 2, 3]"),
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert "decoded gzip" in r[0] assert "decoded gzip" in r[0]
assert "JSON" in r[0] assert "JSON" in r[0]
@ -243,7 +248,8 @@ Larry
], ],
encoding.encode('gzip', "[1, 2, 3]"), encoding.encode('gzip', "[1, 2, 3]"),
1000, 1000,
lambda x, l: None lambda x, l: None,
False
) )
assert "decoded gzip" in r[0] assert "decoded gzip" in r[0]
assert "Raw" in r[0] assert "Raw" in r[0]