aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_read.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-27 00:49:41 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-27 00:49:41 +0200
commit23d13e4c1282bc46c54222479c3b83032dad3335 (patch)
tree051bbe79f815cbdb7b8d2d76ceb0e1e4a31e4dbd /test/http/http1/test_read.py
parent466888b01a361e46fb3d4e66afa2c6a0fd168c8e (diff)
downloadmitmproxy-23d13e4c1282bc46c54222479c3b83032dad3335.tar.gz
mitmproxy-23d13e4c1282bc46c54222479c3b83032dad3335.tar.bz2
mitmproxy-23d13e4c1282bc46c54222479c3b83032dad3335.zip
test response model, push coverage to 100% branch cov
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r--test/http/http1/test_read.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py
index a0085db9..84a43f8b 100644
--- a/test/http/http1/test_read.py
+++ b/test/http/http1/test_read.py
@@ -117,6 +117,9 @@ def test_connection_close():
headers["connection"] = "close"
assert connection_close(b"HTTP/1.1", headers)
+ headers["connection"] = "foobar"
+ assert connection_close(b"HTTP/1.0", headers)
+ assert not connection_close(b"HTTP/1.1", headers)
def test_expected_http_body_size():
# Expect: 100-continue