diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_pathod.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py index 1ab33095..b1529f77 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,6 +1,6 @@ import pprint from libpathod import pathod, version -from netlib import tcp, http +from netlib import tcp, http, certutils import requests import tutils @@ -66,14 +66,13 @@ class TestNotAfterConnect(tutils.DaemonTests): class TestCustomCert(tutils.DaemonTests): ssl = True ssloptions = dict( - certfile = tutils.test_data.path("data/testkey.pem"), - keyfile = tutils.test_data.path("data/testkey.pem"), + certs = [("*", 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 - + assert "Widgits" in str(r.sslinfo.certchain[0].get_subject()) class TestSSLCN(tutils.DaemonTests): @@ -224,5 +223,3 @@ class TestDaemonSSL(CommonTests): assert r.status_code == 202 assert self.d.last_log()["cipher"][1] > 0 - - |