diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2014-10-24 14:01:34 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2014-10-24 14:01:34 +1300 |
commit | 962a414327d93b604a59a4b8c8582d359745009d (patch) | |
tree | b9ef7b756eabb723c66d152b5eae526b4a28ca01 /test/tutils.py | |
parent | 60e3e0b898861804a475fc0f0e860ad5ec51fe13 (diff) | |
download | mitmproxy-962a414327d93b604a59a4b8c8582d359745009d.tar.gz mitmproxy-962a414327d93b604a59a4b8c8582d359745009d.tar.bz2 mitmproxy-962a414327d93b604a59a4b8c8582d359745009d.zip |
Fix tests, re-add scripts
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py index 2c3a2c9d..94c1ff9d 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -1,4 +1,6 @@ -import tempfile, os, shutil +import tempfile +import os +import shutil from contextlib import contextmanager from libpathod import utils, test, pathoc, pathod import requests @@ -11,6 +13,7 @@ class DaemonTests: timeout = None hexdump = False ssloptions = None + @classmethod def setUpAll(self): opts = self.ssloptions or {} @@ -45,7 +48,13 @@ class DaemonTests: def getpath(self, path, params=None): scheme = "https" if self.ssl else "http" return requests.get( - "%s://localhost:%s/%s"%(scheme, self.d.port, path), verify=False, params=params + "%s://localhost:%s/%s"%( + scheme, + self.d.port, + path + ), + verify=False, + params=params ) def get(self, spec): |