aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/http/http1/test_protocol.py')
-rw-r--r--test/http/http1/test_protocol.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/http/http1/test_protocol.py b/test/http/http1/test_protocol.py
index 6704647f..31bf7dab 100644
--- a/test/http/http1/test_protocol.py
+++ b/test/http/http1/test_protocol.py
@@ -376,8 +376,9 @@ class TestReadRequest(object):
class TestReadResponse(object):
def tst(self, data, method, body_size_limit, include_body=True):
data = textwrap.dedent(data)
+ request = http.EmptyRequest(method=method)
return mock_protocol(data).read_response(
- method, body_size_limit, include_body=include_body
+ request, body_size_limit, include_body=include_body
)
def test_errors(self):
@@ -457,7 +458,7 @@ class TestReadResponseNoContentLength(tservers.ServerTestBase):
def test_no_content_length(self):
c = tcp.TCPClient(("127.0.0.1", self.port))
c.connect()
- resp = HTTP1Protocol(c).read_response("GET", None)
+ resp = HTTP1Protocol(c).read_response(http.EmptyRequest(method="GET"), None)
assert resp.body == "bar\r\n\r\n"