diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-10-25 10:20:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 10:20:09 +0200 |
commit | fdd6bd8277265563888d676dcff42b1bca007363 (patch) | |
tree | c067140d9477c6eab3501af55109652d149cdfd2 /test | |
parent | 45145ed08b7623add9a96bfcdcd02a746e44124a (diff) | |
parent | 4a6d838ecc18388afa2f551799c679be752bbbf8 (diff) | |
download | mitmproxy-fdd6bd8277265563888d676dcff42b1bca007363.tar.gz mitmproxy-fdd6bd8277265563888d676dcff42b1bca007363.tar.bz2 mitmproxy-fdd6bd8277265563888d676dcff42b1bca007363.zip |
Merge pull request #2606 from mhils/issue-2563
Fix #2563
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/proxy/test_server.py | 4 | ||||
-rw-r--r-- | test/mitmproxy/test_certs.py | 2 | ||||
-rw-r--r-- | test/pathod/test_pathod.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/mitmproxy/proxy/test_server.py b/test/mitmproxy/proxy/test_server.py index affdf221..8dce9bcd 100644 --- a/test/mitmproxy/proxy/test_server.py +++ b/test/mitmproxy/proxy/test_server.py @@ -479,7 +479,7 @@ class TestHTTPSNoCommonName(tservers.HTTPProxyTest): ssl = True ssloptions = pathod.SSLOptions( certs=[ - (b"*", tutils.test_data.path("mitmproxy/data/no_common_name.pem")) + ("*", tutils.test_data.path("mitmproxy/data/no_common_name.pem")) ] ) @@ -1142,7 +1142,7 @@ class AddUpstreamCertsToClientChainMixin: ssloptions = pathod.SSLOptions( cn=b"example.mitmproxy.org", certs=[ - (b"example.mitmproxy.org", servercert) + ("example.mitmproxy.org", servercert) ] ) diff --git a/test/mitmproxy/test_certs.py b/test/mitmproxy/test_certs.py index 88c49561..693bebc6 100644 --- a/test/mitmproxy/test_certs.py +++ b/test/mitmproxy/test_certs.py @@ -102,7 +102,7 @@ class TestCertStore: dc = ca2.get_cert(b"foo.com", [b"sans.example.com"]) dcp = tmpdir.join("dc") dcp.write(dc[0].to_pem()) - ca1.add_cert_file(b"foo.com", str(dcp)) + ca1.add_cert_file("foo.com", str(dcp)) ret = ca1.get_cert(b"foo.com", []) assert ret[0].serial == dc[0].serial diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py index 5f191c0d..c0011952 100644 --- a/test/pathod/test_pathod.py +++ b/test/pathod/test_pathod.py @@ -57,7 +57,7 @@ class TestNotAfterConnect(tservers.DaemonTests): class TestCustomCert(tservers.DaemonTests): ssl = True ssloptions = dict( - certs=[(b"*", tutils.test_data.path("pathod/data/testkey.pem"))], + certs=[("*", tutils.test_data.path("pathod/data/testkey.pem"))], ) def test_connect(self): |