From 5261bcdf4b0976b8db3295292143282b34f10c51 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 28 Sep 2015 11:46:18 +0200 Subject: properly adjust tests for 87566da3ba --- test/http/http1/test_read.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/http/http1/test_read.py') 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") -- cgit v1.2.3