diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-27 00:49:41 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-27 00:49:41 +0200 |
commit | 23d13e4c1282bc46c54222479c3b83032dad3335 (patch) | |
tree | 051bbe79f815cbdb7b8d2d76ceb0e1e4a31e4dbd /test/http/http1/test_read.py | |
parent | 466888b01a361e46fb3d4e66afa2c6a0fd168c8e (diff) | |
download | mitmproxy-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.py | 3 |
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 |