aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-08-23 19:29:24 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-09-03 10:00:31 +0200
commit5dda9505b6f07422eb9a24590f30e9230a5453ef (patch)
tree7b04df72e4f16eb29420f363a57ddc8d87a8c641 /test/pathod
parent043180a8faa2b6f9f75c3fe12b110ee18e623fbf (diff)
downloadmitmproxy-5dda9505b6f07422eb9a24590f30e9230a5453ef.tar.gz
mitmproxy-5dda9505b6f07422eb9a24590f30e9230a5453ef.tar.bz2
mitmproxy-5dda9505b6f07422eb9a24590f30e9230a5453ef.zip
http2: improve framereader
Diffstat (limited to 'test/pathod')
-rw-r--r--test/pathod/test_protocols_http2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pathod/test_protocols_http2.py b/test/pathod/test_protocols_http2.py
index 8d7efc82..7f65c0eb 100644
--- a/test/pathod/test_protocols_http2.py
+++ b/test/pathod/test_protocols_http2.py
@@ -5,7 +5,7 @@ import hyperframe
from netlib import tcp, http
from netlib.tutils import raises
from netlib.exceptions import TcpDisconnect
-from netlib.http.http2 import framereader
+from netlib.http import http2
from ..netlib import tservers as netlib_tservers
@@ -112,11 +112,11 @@ class TestPerformServerConnectionPreface(netlib_tservers.ServerTestBase):
self.wfile.flush()
# check empty settings frame
- raw = framereader.http2_read_raw_frame(self.rfile)
+ raw = http2.read_raw_frame(self.rfile)
assert raw == codecs.decode('00000c040000000000000200000000000300000001', 'hex_codec')
# check settings acknowledgement
- raw = framereader.http2_read_raw_frame(self.rfile)
+ raw = http2.read_raw_frame(self.rfile)
assert raw == codecs.decode('000000040100000000', 'hex_codec')
# send settings acknowledgement