From 5eeb52183a24a6a5dd7f9a37ef342dfd3cfd279c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 13 May 2013 09:03:48 +1200 Subject: Adapt for new request_client_cert option in netlib. --- test/test_pathoc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_pathoc.py') 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", -- cgit v1.2.3