aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-11 16:13:22 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-06-15 15:51:01 +0200
commita0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e (patch)
treecf3b842c1ad8f7a75d6eb2ffa8063b5385407b5a /test/test_pathoc.py
parent30fbf57e4b72e3947c323d98aee7b2d44663e33c (diff)
downloadmitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.gz
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.tar.bz2
mitmproxy-a0d8afd0fcc3c678da0dc956c5a80d4e07d5ac3e.zip
http2: add request-response to pathod
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r--test/test_pathoc.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index e1e1fe97..d39f9275 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -230,9 +230,6 @@ class TestDaemon(_TestDaemon):
class TestDaemonHTTP2(_TestDaemon):
ssl = True
- ssloptions = pathod.SSLOptions(
- alpn_select = http2.HTTP2Protocol.ALPN_PROTO_H2,
- )
def test_http2(self):
c = pathoc.Pathoc(
@@ -270,5 +267,5 @@ class TestDaemonHTTP2(_TestDaemon):
use_http2 = True,
)
c.connect()
- resp = c.request("get:/api/info")
- assert tuple(json.loads(resp.content)["version"]) == version.IVERSION
+ resp = c.request("get:/p/200")
+ assert resp.status_code == "200"