diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-20 16:33:00 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:51 +0200 |
commit | faf17d3d60e658d0cd1df30a10be4f11035502f8 (patch) | |
tree | ae68b34afdeeeaddcf7bd73c10c9ec716fe5a331 /test/http/http2/test_protocol.py | |
parent | ecc7ffe9282ae9d1b652a88946d6edc550dc9633 (diff) | |
download | mitmproxy-faf17d3d60e658d0cd1df30a10be4f11035502f8.tar.gz mitmproxy-faf17d3d60e658d0cd1df30a10be4f11035502f8.tar.bz2 mitmproxy-faf17d3d60e658d0cd1df30a10be4f11035502f8.zip |
http2: make proper use of odict
Diffstat (limited to 'test/http/http2/test_protocol.py')
-rw-r--r-- | test/http/http2/test_protocol.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/http/http2/test_protocol.py b/test/http/http2/test_protocol.py index 34e4ef50..d3040266 100644 --- a/test/http/http2/test_protocol.py +++ b/test/http/http2/test_protocol.py @@ -1,6 +1,6 @@ import OpenSSL -from netlib import tcp +from netlib import tcp, odict from netlib.http import http2 from netlib.http.http2.frame import * from ... import tutils, tservers @@ -256,7 +256,7 @@ class TestReadResponse(tservers.ServerTestBase): assert resp.httpversion == "HTTP/2" assert resp.status_code == "200" assert resp.msg == "" - assert resp.headers == {':status': '200', 'etag': 'foobar'} + assert resp.headers.lst == [[':status', '200'], ['etag', 'foobar']] assert resp.body == b'foobar' @@ -282,7 +282,7 @@ class TestReadEmptyResponse(tservers.ServerTestBase): assert resp.httpversion == "HTTP/2" assert resp.status_code == "200" assert resp.msg == "" - assert resp.headers == {':status': '200', 'etag': 'foobar'} + assert resp.headers.lst == [[':status', '200'], ['etag', 'foobar']] assert resp.body == b'' @@ -307,7 +307,7 @@ class TestReadRequest(tservers.ServerTestBase): resp = protocol.read_request() assert resp.stream_id - assert resp.headers == {':method': 'GET', ':path': '/', ':scheme': 'https'} + assert resp.headers.lst == [[u':method', u'GET'], [u':path', u'/'], [u':scheme', u'https']] assert resp.body == b'foobar' |