aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http2/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/http2/test_protocol.py
parent622665952ca072a6276917c252758bbe19091a0d (diff)
downloadmitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.tar.gz
mitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.tar.bz2
mitmproxy-21858995aee48c67430c9b6f3965d897b27cd734.zip
request -> request_method
Diffstat (limited to 'test/http/http2/test_protocol.py')
-rw-r--r--test/http/http2/test_protocol.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/http/http2/test_protocol.py b/test/http/http2/test_protocol.py
index 92fa109c..8810894f 100644
--- a/test/http/http2/test_protocol.py
+++ b/test/http/http2/test_protocol.py
@@ -410,9 +410,8 @@ class TestReadResponse(tservers.ServerTestBase):
protocol = HTTP2Protocol(c)
protocol.connection_preface_performed = True
- resp = protocol.read_response(http.EmptyRequest(stream_id=42))
+ resp = protocol.read_response(stream_id=42)
- assert resp.stream_id == 42
assert resp.httpversion == (2, 0)
assert resp.status_code == 200
assert resp.msg == ""
@@ -437,7 +436,7 @@ class TestReadEmptyResponse(tservers.ServerTestBase):
protocol = HTTP2Protocol(c)
protocol.connection_preface_performed = True
- resp = protocol.read_response(http.EmptyRequest(stream_id=42))
+ resp = protocol.read_response(stream_id=42)
assert resp.stream_id == 42
assert resp.httpversion == (2, 0)