aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http1/test_protocol.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-08-24 18:16:34 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-08-24 18:16:34 +0200
commit21858995aee48c67430c9b6f3965d897b27cd734 (patch)
tree9d31811ab4ff72ca21c5d0687d0d58a3e7fd0c7d /test/http/http1/test_protocol.py
parent622665952ca072a6276917c252758bbe19091a0d (diff)
downloadmitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.tar.gz
mitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.tar.bz2
mitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.zip
request -> request_method
Diffstat (limited to 'test/http/http1/test_protocol.py')
-rw-r--r--test/http/http1/test_protocol.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/http/http1/test_protocol.py b/test/http/http1/test_protocol.py
index 31bf7dab..6704647f 100644
--- a/test/http/http1/test_protocol.py
+++ b/test/http/http1/test_protocol.py
@@ -376,9 +376,8 @@ 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(
- request, body_size_limit, include_body=include_body
+ method, body_size_limit, include_body=include_body
)
def test_errors(self):
@@ -458,7 +457,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(http.EmptyRequest(method="GET"), None)
+ resp = HTTP1Protocol(c).read_response("GET", None)
assert resp.body == "bar\r\n\r\n"