aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http2/test_protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-27 09:36:50 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-07-27 11:48:38 +0200
commit827fe824d97d96779512c8a4032d9b30d516d63f (patch)
treea271611cf4ea1a91372d57428a2c49ffc2b74461 /test/http/http2/test_protocol.py
parentfb482172241b6235da083f6dbf154b641772a4fc (diff)
downloadmitmproxy-827fe824d97d96779512c8a4032d9b30d516d63f.tar.gz
mitmproxy-827fe824d97d96779512c8a4032d9b30d516d63f.tar.bz2
mitmproxy-827fe824d97d96779512c8a4032d9b30d516d63f.zip
move code from mitmproxy to netlib
Diffstat (limited to 'test/http/http2/test_protocol.py')
-rw-r--r--test/http/http2/test_protocol.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/http/http2/test_protocol.py b/test/http/http2/test_protocol.py
index d3040266..0216128f 100644
--- a/test/http/http2/test_protocol.py
+++ b/test/http/http2/test_protocol.py
@@ -253,7 +253,7 @@ class TestReadResponse(tservers.ServerTestBase):
resp = protocol.read_response()
- assert resp.httpversion == "HTTP/2"
+ assert resp.httpversion == (2, 0)
assert resp.status_code == "200"
assert resp.msg == ""
assert resp.headers.lst == [[':status', '200'], ['etag', 'foobar']]
@@ -279,7 +279,7 @@ class TestReadEmptyResponse(tservers.ServerTestBase):
resp = protocol.read_response()
assert resp.stream_id
- assert resp.httpversion == "HTTP/2"
+ assert resp.httpversion == (2, 0)
assert resp.status_code == "200"
assert resp.msg == ""
assert resp.headers.lst == [[':status', '200'], ['etag', 'foobar']]