diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-18 15:54:29 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-07-22 15:30:34 +0200 |
commit | 6d5a3da9294d5bc6758ded173729042573c9fe5f (patch) | |
tree | d2c7993787d4fb7d703bd90f2403ad69b548b186 /test/test_pathoc.py | |
parent | caaac5cd5a48d2bd1e50f0ff88c9d73a20ec9aa6 (diff) | |
download | mitmproxy-6d5a3da9294d5bc6758ded173729042573c9fe5f.tar.gz mitmproxy-6d5a3da9294d5bc6758ded173729042573c9fe5f.tar.bz2 mitmproxy-6d5a3da9294d5bc6758ded173729042573c9fe5f.zip |
use new HTTP/1 protocol
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index 894c14c5..e9d1e6ab 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -5,7 +5,7 @@ import OpenSSL from mock import Mock from netlib import tcp, http, socks -from netlib.http import http2 +from netlib.http import http1, http2 from libpathod import pathoc, test, version, pathod, language import tutils @@ -272,8 +272,7 @@ class TestDaemonHTTP2(_TestDaemon): c = pathoc.Pathoc( ("127.0.0.1", self.d.port), ) - # TODO: change if other protocols get implemented - assert c.protocol is None + assert isinstance(c.protocol, http1.HTTP1Protocol) def test_http2_alpn(self): c = pathoc.Pathoc( |