diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-05-30 12:03:13 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-05-30 12:03:13 +1200 |
commit | 4ed5043c67848bf717e48bc509d959422c8faeb6 (patch) | |
tree | 92abe731c72d34bf6b43cbe1ecb46939953a6860 /test/test_pathoc.py | |
parent | 904760c6c2927caf49b7cbe4027dd1c8dd8e9fdb (diff) | |
download | mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.gz mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.tar.bz2 mitmproxy-4ed5043c67848bf717e48bc509d959422c8faeb6.zip |
Add coding style check, reformat.
Diffstat (limited to 'test/test_pathoc.py')
-rw-r--r-- | test/test_pathoc.py | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py index 8d0d5972..1735f084 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -128,20 +128,33 @@ class TestDaemon(_TestDaemon): tutils.raises("ssl handshake", c.connect) def test_showssl(self): - assert not "certificate chain" in self.tval(["get:/p/200"], showssl=True) + assert not "certificate chain" in self.tval( + ["get:/p/200"], + showssl=True) def test_ignorecodes(self): assert "200" in self.tval(["get:'/p/200:b@1'"]) assert "200" in self.tval(["get:'/p/200:b@1'"]) assert "200" in self.tval(["get:'/p/200:b@1'"]) assert "200" not in self.tval(["get:'/p/200:b@1'"], ignorecodes=[200]) - assert "200" not in self.tval(["get:'/p/200:b@1'"], ignorecodes=[200, 201]) + assert "200" not in self.tval( + ["get:'/p/200:b@1'"], + ignorecodes=[ + 200, + 201]) assert "202" in self.tval(["get:'/p/202:b@1'"], ignorecodes=[200, 201]) def test_timeout(self): assert "Timeout" in self.tval(["get:'/p/200:p0,10'"], timeout=0.01) - assert "HTTP" in self.tval(["get:'/p/200:p5,10'"], showresp=True, timeout=0.01) - assert not "HTTP" in self.tval(["get:'/p/200:p3,10'"], showresp=True, timeout=0.01, ignoretimeout=True) + assert "HTTP" in self.tval( + ["get:'/p/200:p5,10'"], + showresp=True, + timeout=0.01) + assert not "HTTP" in self.tval( + ["get:'/p/200:p3,10'"], + showresp=True, + timeout=0.01, + ignoretimeout=True) def test_showresp(self): reqs = ["get:/api/info:p0,0", "get:/api/info:p0,0"] |