From be450cf9db1d819b1023029c8d403f401e010c98 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 20 Apr 2015 08:56:47 +1200 Subject: Whitespace, small fixes. --- test/tutils.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/tutils.py') 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 -- cgit v1.2.3