diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:12:11 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-18 18:15:22 +0200 |
commit | 7a3623a14ee2ffa021c1a2a8f337826e055b328d (patch) | |
tree | 7abdfdba135ea1f6022a8a72b1c52371f76fbea2 /test/tutils.py | |
parent | 90aeda47aead50110ee4a0a29b01edd170539818 (diff) | |
download | mitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.tar.gz mitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.tar.bz2 mitmproxy-7a3623a14ee2ffa021c1a2a8f337826e055b328d.zip |
fix pep8 whitespace
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/test/tutils.py b/test/tutils.py index 2184ade5..050fa108 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -29,18 +29,18 @@ class DaemonTests(object): anchors=[ (re.compile("/anchor/.*"), "202:da") ], - ssl = klass.ssl, - ssloptions = so, - sizelimit = 1 * 1024 * 1024, - noweb = klass.noweb, - noapi = klass.noapi, - nohang = klass.nohang, - timeout = klass.timeout, - hexdump = klass.hexdump, - nocraft = klass.nocraft, - logreq = True, - logresp = True, - explain = True + ssl=klass.ssl, + ssloptions=so, + sizelimit=1 * 1024 * 1024, + noweb=klass.noweb, + noapi=klass.noapi, + nohang=klass.nohang, + timeout=klass.timeout, + hexdump=klass.hexdump, + nocraft=klass.nocraft, + logreq=True, + logresp=True, + explain=True ) @classmethod @@ -86,9 +86,9 @@ class DaemonTests(object): ("localhost", self.d.port), ssl=ssl, ws_read_limit=ws_read_limit, - timeout = timeout, - fp = logfp, - use_http2 = use_http2, + timeout=timeout, + fp=logfp, + use_http2=use_http2, ) c.connect(connect_to) ret = [] @@ -100,6 +100,7 @@ class DaemonTests(object): ret.append(frm) return ret, logfp.getvalue() + @contextmanager def tmpdir(*args, **kwargs): orig_workdir = os.getcwd() |