diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-28 11:46:18 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-28 11:46:18 +0200 |
commit | 5261bcdf4b0976b8db3295292143282b34f10c51 (patch) | |
tree | 0d2fdaaaf383622f1b07321862c22b6f2582a52f /test/http/http1/test_read.py | |
parent | 87566da3babcc827e9dae0f2e9ab9154c353aa11 (diff) | |
download | mitmproxy-5261bcdf4b0976b8db3295292143282b34f10c51.tar.gz mitmproxy-5261bcdf4b0976b8db3295292143282b34f10c51.tar.bz2 mitmproxy-5261bcdf4b0976b8db3295292143282b34f10c51.zip |
properly adjust tests for 87566da3ba
Diffstat (limited to 'test/http/http1/test_read.py')
-rw-r--r-- | test/http/http1/test_read.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/http/http1/test_read.py b/test/http/http1/test_read.py index 36cf7e1d..98d31bc2 100644 --- a/test/http/http1/test_read.py +++ b/test/http/http1/test_read.py @@ -169,10 +169,6 @@ def test_get_first_line(): rfile = BytesIO(b"") _get_first_line(rfile) - with raises(HttpSyntaxException): - rfile = BytesIO(b"GET /\xff HTTP/1.1") - _get_first_line(rfile) - def test_read_request_line(): def t(b): @@ -213,7 +209,7 @@ def test_read_response_line(): assert t(b"HTTP/1.1 200") == (b"HTTP/1.1", 200, b"") # https://github.com/mitmproxy/mitmproxy/issues/784 - assert t(b"HTTP/1.1 200") == (b"HTTP/1.1 Non-Autoris\xc3\xa9", 200, b"") + assert t(b"HTTP/1.1 200 Non-Autoris\xc3\xa9") == (b"HTTP/1.1", 200, b"Non-Autoris\xc3\xa9") with raises(HttpSyntaxException): assert t(b"HTTP/1.1") |