aboutsummaryrefslogtreecommitdiffstats
path: root/test/http/http2/test_protocol.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-17 15:16:12 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-17 15:16:12 +0200
commit8d71059d77c2dd1d9858d7971dd0b6b4387ed9f4 (patch)
tree831f47cfd19e7d58c0f31b0a924832d421d4eb52 /test/http/http2/test_protocol.py
parenta07e43df8b3988f137b48957f978ad570d9dc782 (diff)
downloadmitmproxy-8d71059d77c2dd1d9858d7971dd0b6b4387ed9f4.tar.gz
mitmproxy-8d71059d77c2dd1d9858d7971dd0b6b4387ed9f4.tar.bz2
mitmproxy-8d71059d77c2dd1d9858d7971dd0b6b4387ed9f4.zip
clean up http message models
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 598b5cd7..a55941e0 100644
--- a/test/http/http2/test_protocol.py
+++ b/test/http/http2/test_protocol.py
@@ -413,7 +413,7 @@ class TestReadResponse(tservers.ServerTestBase):
resp = protocol.read_response(NotImplemented, stream_id=42)
- assert resp.httpversion == (2, 0)
+ assert resp.http_version == (2, 0)
assert resp.status_code == 200
assert resp.msg == ""
assert resp.headers.fields == [[':status', '200'], ['etag', 'foobar']]
@@ -440,7 +440,7 @@ class TestReadEmptyResponse(tservers.ServerTestBase):
resp = protocol.read_response(NotImplemented, stream_id=42)
assert resp.stream_id == 42
- assert resp.httpversion == (2, 0)
+ assert resp.http_version == (2, 0)
assert resp.status_code == 200
assert resp.msg == ""
assert resp.headers.fields == [[':status', '200'], ['etag', 'foobar']]