aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_http.py b/test/test_http.py
index 497e80e2..e3e92a1e 100644
--- a/test/test_http.py
+++ b/test/test_http.py
@@ -119,11 +119,11 @@ def test_expected_http_body_size():
# gibber in the content-length field
h = odict.ODictCaseless()
h["content-length"] = ["foo"]
- tutils.raises(http.HttpError, http.expected_http_body_size, h, False, "GET", 200)
+ assert http.expected_http_body_size(h, False, "GET", 200) is None
# negative number in the content-length field
h = odict.ODictCaseless()
h["content-length"] = ["-7"]
- tutils.raises(http.HttpError, http.expected_http_body_size, h, False, "GET", 200)
+ assert http.expected_http_body_size(h, False, "GET", 200) is None
# explicit length
h = odict.ODictCaseless()
h["content-length"] = ["5"]