diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-07-25 21:57:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 21:57:54 +0200 |
commit | d409a6c09a873c8131c5e6938aea496904f324c3 (patch) | |
tree | 99d7c442043e1cf4105a8b95f2494ed81a07b53c /test/pathod/test_pathoc.py | |
parent | 3262b6e70510e3fd78c512ee79fcb8eb35d371ba (diff) | |
parent | 4855659eebfe7b2ea965daced88879277b75439c (diff) | |
download | mitmproxy-d409a6c09a873c8131c5e6938aea496904f324c3.tar.gz mitmproxy-d409a6c09a873c8131c5e6938aea496904f324c3.tar.bz2 mitmproxy-d409a6c09a873c8131c5e6938aea496904f324c3.zip |
Merge pull request #2469 from Kriechi/nuke-old-openssl
nuke old openssl
Diffstat (limited to 'test/pathod/test_pathoc.py')
-rw-r--r-- | test/pathod/test_pathoc.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/pathod/test_pathoc.py b/test/pathod/test_pathoc.py index 2dd29e20..4b50e2a7 100644 --- a/test/pathod/test_pathoc.py +++ b/test/pathod/test_pathoc.py @@ -11,7 +11,6 @@ from pathod.protocols.http2 import HTTP2StateProtocol from mitmproxy.test import tutils from . import tservers -from ..conftest import requires_alpn def test_response(): @@ -216,7 +215,6 @@ class TestDaemonHTTP2(PathocTestDaemon): ssl = True explain = False - @requires_alpn def test_http2(self): c = pathoc.Pathoc( ("127.0.0.1", self.d.port), @@ -231,7 +229,6 @@ class TestDaemonHTTP2(PathocTestDaemon): ) assert c.protocol == http1 - @requires_alpn def test_http2_alpn(self): c = pathoc.Pathoc( ("127.0.0.1", self.d.port), @@ -248,7 +245,6 @@ class TestDaemonHTTP2(PathocTestDaemon): _, kwargs = c.convert_to_ssl.call_args assert set(kwargs['alpn_protos']) == set([b'http/1.1', b'h2']) - @requires_alpn def test_request(self): c = pathoc.Pathoc( ("127.0.0.1", self.d.port), @@ -259,14 +255,3 @@ class TestDaemonHTTP2(PathocTestDaemon): with c.connect(): resp = c.request("get:/p/200") assert resp.status_code == 200 - - def test_failing_request(self, disable_alpn): - c = pathoc.Pathoc( - ("127.0.0.1", self.d.port), - fp=None, - ssl=True, - use_http2=True, - ) - with pytest.raises(NotImplementedError): - with c.connect(): - c.request("get:/p/200") |