From 4de9cbb61ee0bedd882518e72a1605ca999ccf97 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 24 Jan 2016 23:15:42 +0100 Subject: [PATCH] rename test file --- ...rotocol_http.py => test_protocol_http1.py} | 27 ------------------- 1 file changed, 27 deletions(-) rename test/{test_protocol_http.py => test_protocol_http1.py} (70%) diff --git a/test/test_protocol_http.py b/test/test_protocol_http1.py similarity index 70% rename from test/test_protocol_http.py rename to test/test_protocol_http1.py index 489be3f94..f5fe93a84 100644 --- a/test/test_protocol_http.py +++ b/test/test_protocol_http1.py @@ -6,33 +6,6 @@ from netlib.tutils import treq, raises from . import tutils, tservers -class TestHTTPResponse: - - def test_read_from_stringio(self): - s = ( - b"HTTP/1.1 200 OK\r\n" - b"Content-Length: 7\r\n" - b"\r\n" - b"content\r\n" - b"HTTP/1.1 204 OK\r\n" - b"\r\n" - ) - rfile = BytesIO(s) - r = http1.read_response(rfile, treq()) - assert r.status_code == 200 - assert r.content == b"content" - assert http1.read_response(rfile, treq()).status_code == 204 - - rfile = BytesIO(s) - # HEAD must not have content by spec. We should leave it on the pipe. - r = http1.read_response(rfile, treq(method=b"HEAD")) - assert r.status_code == 200 - assert r.content == b"" - - with raises(HttpSyntaxException): - http1.read_response(rfile, treq()) - - class TestHTTPFlow(object): def test_repr(self):