aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/tutils.py b/test/tutils.py
index c1e55a61..18b5fb78 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -7,7 +7,7 @@ from libpathod import utils, test, pathoc, pathod, language
import requests
-class DaemonTests:
+class DaemonTests(object):
noweb = False
noapi = False
nohang = False
@@ -17,24 +17,24 @@ class DaemonTests:
ssloptions = None
@classmethod
- def setUpAll(self):
- opts = self.ssloptions or {}
- self.confdir = tempfile.mkdtemp()
- opts["confdir"] = self.confdir
+ def setUpAll(klass):
+ opts = klass.ssloptions or {}
+ klass.confdir = tempfile.mkdtemp()
+ opts["confdir"] = klass.confdir
so = pathod.SSLOptions(**opts)
- self.d = test.Daemon(
+ klass.d = test.Daemon(
staticdir=test_data.path("data"),
anchors=[
(re.compile("/anchor/.*"), language.parse_response("202:da"))
],
- ssl = self.ssl,
+ ssl = klass.ssl,
ssloptions = so,
sizelimit=1*1024*1024,
- noweb = self.noweb,
- noapi = self.noapi,
- nohang = self.nohang,
- timeout = self.timeout,
- hexdump = self.hexdump,
+ noweb = klass.noweb,
+ noapi = klass.noapi,
+ nohang = klass.nohang,
+ timeout = klass.timeout,
+ hexdump = klass.hexdump,
logreq = True,
logresp = True,
explain = True