diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-08-24 18:16:34 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-08-24 18:16:34 +0200 |
commit | 21858995aee48c67430c9b6f3965d897b27cd734 (patch) | |
tree | 9d31811ab4ff72ca21c5d0687d0d58a3e7fd0c7d /test/http/http2/test_protocol.py | |
parent | 622665952ca072a6276917c252758bbe19091a0d (diff) | |
download | mitmproxy-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.py | 5 |
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) |