diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:33:20 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:43:20 +0200 |
commit | e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7 (patch) | |
tree | b37af6f7e7658aa8d4851fde80928475840921f3 /test/pathod/test_pathod.py | |
parent | 5c45ca7f9aba05849bd8db24bb58c1951f79e630 (diff) | |
download | mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.tar.gz mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.tar.bz2 mitmproxy-e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7.zip |
more style cleanup
Diffstat (limited to 'test/pathod/test_pathod.py')
-rw-r--r-- | test/pathod/test_pathod.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py index 13b36e36..4d969158 100644 --- a/test/pathod/test_pathod.py +++ b/test/pathod/test_pathod.py @@ -51,7 +51,7 @@ class TestNoApi(tutils.DaemonTests): assert self.getpath("/log").status_code == 404 r = self.getpath("/") assert r.status_code == 200 - assert not "Log" in r.content + assert "Log" not in r.content class TestNotAfterConnect(tutils.DaemonTests): @@ -110,7 +110,7 @@ class TestHexdump(tutils.DaemonTests): hexdump = True def test_hexdump(self): - r = self.get(r"200:b'\xf0'") + assert self.get(r"200:b'\xf0'") class TestNocraft(tutils.DaemonTests): @@ -125,8 +125,8 @@ class TestNocraft(tutils.DaemonTests): class CommonTests(tutils.DaemonTests): def test_binarydata(self): - r = self.get(r"200:b'\xf0'") - l = self.d.last_log() + assert self.get(r"200:b'\xf0'") + assert self.d.last_log() # FIXME: Other binary data elements @pytest.mark.skip(reason="race condition") @@ -147,7 +147,7 @@ class CommonTests(tutils.DaemonTests): def test_logs(self): assert self.d.clear_log() assert not self.d.last_log() - rsp = self.get("202:da") + assert self.get("202:da") assert len(self.d.log()) == 1 assert self.d.clear_log() assert len(self.d.log()) == 0 |