aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_language_http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-06-17 14:15:48 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-06-17 15:06:01 +0200
commiteb3ed87100ff7c32e5bf040db7eb6ea3d0c06e12 (patch)
tree7a4b871c24193d31f8dc23794b0a37f58c111c92 /test/pathod/test_language_http2.py
parentfcf5dc8728816bae73a175ee021f8a11a1591567 (diff)
downloadmitmproxy-eb3ed87100ff7c32e5bf040db7eb6ea3d0c06e12.tar.gz
mitmproxy-eb3ed87100ff7c32e5bf040db7eb6ea3d0c06e12.tar.bz2
mitmproxy-eb3ed87100ff7c32e5bf040db7eb6ea3d0c06e12.zip
move custom HTTP/2 stack from netlib to pathod
Diffstat (limited to 'test/pathod/test_language_http2.py')
-rw-r--r--test/pathod/test_language_http2.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/pathod/test_language_http2.py b/test/pathod/test_language_http2.py
index a2bffe63..f4b34047 100644
--- a/test/pathod/test_language_http2.py
+++ b/test/pathod/test_language_http2.py
@@ -1,12 +1,13 @@
from six import BytesIO
-import netlib
from netlib import tcp
from netlib.http import user_agents
from pathod import language
from pathod.language import http2
-import tutils
+from pathod.protocols.http2 import HTTP2StateProtocol
+
+from . import tutils
def parse_request(s):
@@ -20,7 +21,7 @@ def parse_response(s):
def default_settings():
return language.Settings(
request_host="foo.com",
- protocol=netlib.http.http2.HTTP2Protocol(tcp.TCPClient(('localhost', 1234)))
+ protocol=HTTP2StateProtocol(tcp.TCPClient(('localhost', 1234)))
)