aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-16 13:52:41 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-16 14:53:41 +0200
commit408b4ffef0a784bea7ec08c252e757bca6e28134 (patch)
treef7694eb9f7f875d72355b9f7c342910174574fc0 /test/test_pathod.py
parentec68aa303e89398ba34bbe01f3fbd1ac1fc441f3 (diff)
downloadmitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.gz
mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.bz2
mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.zip
http2: implement Headers for request & response
improve test coverage fix super ctor call fix legacy httpversion simpliy SSLInfo without ALPN
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index f85ef38d..1a3a5004 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -1,7 +1,7 @@
import sys
import cStringIO
from libpathod import pathod, version
-from netlib import tcp, http
+from netlib import tcp, http, http2
import tutils
@@ -269,3 +269,15 @@ class TestDaemonSSL(CommonTests):
r, _ = self.pathoc([r"get:/p/202"])
assert r[0].status_code == 202
assert self.d.last_log()["cipher"][1] > 0
+
+class TestHTTP2(tutils.DaemonTests):
+ force_http2 = True
+ ssl = True
+ noweb = True
+ noapi = True
+ nohang = True
+
+ def test_http2(self):
+ r, _ = self.pathoc(["GET:/"], ssl=True, use_http2=True)
+ print(r)
+ assert r[0].status_code == "800"