aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-12-29 17:51:11 +0100
committerMaximilian Hils <git@maximilianhils.com>2015-12-29 17:51:11 +0100
commit7b093b46b6a8ce98fe3d55de81d9305d966dfcbf (patch)
tree6cfb22f7f433b5b4af4079e2e6724f6730ebceb0 /test/test_proxy.py
parent6391b05ef1b92585765eb77e352921ec61b65020 (diff)
parent09168e1274b0e33448811c39efa3fbdd2aeff756 (diff)
downloadmitmproxy-7b093b46b6a8ce98fe3d55de81d9305d966dfcbf.tar.gz
mitmproxy-7b093b46b6a8ce98fe3d55de81d9305d966dfcbf.tar.bz2
mitmproxy-7b093b46b6a8ce98fe3d55de81d9305d966dfcbf.zip
Merge pull request #870 from bazzinotti/master
[docs/libmproxy/test] Support single client-side cert file
Diffstat (limited to 'test/test_proxy.py')
-rw-r--r--test/test_proxy.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_proxy.py b/test/test_proxy.py
index b3e7258a..b498c800 100644
--- a/test/test_proxy.py
+++ b/test/test_proxy.py
@@ -1,3 +1,4 @@
+import os
import mock
from OpenSSL import SSL
@@ -99,8 +100,11 @@ class TestProcessProxyOptions:
def test_client_certs(self):
with tutils.tmpdir() as cadir:
self.assert_noerr("--client-certs", cadir)
+ self.assert_noerr(
+ "--client-certs",
+ os.path.join(tutils.test_data.path("data/clientcert"), "client.pem"))
self.assert_err(
- "directory does not exist",
+ "path does not exist",
"--client-certs",
"nonexistent")