diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-03-02 15:13:56 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-03-02 15:13:56 +1300 |
commit | 234d326080ac471ed5a92f08db458f29568f0dd4 (patch) | |
tree | 703698168c0f143f12fdf38aa68e73969772b358 /test/test_pathod.py | |
parent | 091e539a0203ca272e3a4ba2a9f23331bbd85005 (diff) | |
download | mitmproxy-234d326080ac471ed5a92f08db458f29568f0dd4.tar.gz mitmproxy-234d326080ac471ed5a92f08db458f29568f0dd4.tar.bz2 mitmproxy-234d326080ac471ed5a92f08db458f29568f0dd4.zip |
Implement custom certs.
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r-- | test/test_pathod.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 6fc31677..56ffd302 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -63,6 +63,19 @@ class TestNotAfterConnect(tutils.DaemonTests): assert r.status_code == 202 +class TestCustomCert(tutils.DaemonTests): + ssl = True + ssloptions = dict( + certfile = tutils.test_data.path("data/testkey.pem"), + cacert = tutils.test_data.path("data/testkey.pem"), + ) + def test_connect(self): + r = self.pathoc(r"get:/p/202") + assert r.status_code == 202 + assert r.sslinfo + + + class TestSSLCN(tutils.DaemonTests): ssl = True ssloptions = dict( |