diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-05-13 09:03:48 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-05-13 09:03:48 +1200 |
commit | 5eeb52183a24a6a5dd7f9a37ef342dfd3cfd279c (patch) | |
tree | 20c9a2bd3f8c370f91d4e451d34bceee8b84f387 /test | |
parent | 3217fcad140d3f9322052f5f1c0b6ce22479f15a (diff) | |
download | mitmproxy-5eeb52183a24a6a5dd7f9a37ef342dfd3cfd279c.tar.gz mitmproxy-5eeb52183a24a6a5dd7f9a37ef342dfd3cfd279c.tar.bz2 mitmproxy-5eeb52183a24a6a5dd7f9a37ef342dfd3cfd279c.zip |
Adapt for new request_client_cert option in netlib.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_pathoc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index 5391167f..31d73111 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -1,5 +1,5 @@ import json, cStringIO -from libpathod import pathoc, test, version +from libpathod import pathoc, test, version, pathod import tutils def test_response(): @@ -8,10 +8,12 @@ def test_response(): class _TestDaemon: + ssloptions = pathod.SSLOptions() @classmethod def setUpAll(self): self.d = test.Daemon( ssl=self.ssl, + ssloptions=self.ssloptions, staticdir=tutils.test_data.path("data"), anchors=[("/anchor/.*", "202")] ) @@ -36,6 +38,7 @@ class _TestDaemon: class TestDaemonSSL(_TestDaemon): ssl = True + ssloptions = pathod.SSLOptions(request_client_cert=True) def test_sni(self): c = pathoc.Pathoc( "127.0.0.1", |