diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-06-03 14:08:48 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2016-06-03 14:08:48 +1200 |
commit | 7191906ba895dba3e1a86573087ef45354126afe (patch) | |
tree | fe5e73b791c1e48d090ffb25e29a9556d683c9c3 /test/pathod/test_app.py | |
parent | 734ec945544f5ff0a33729f343c6f65443221df1 (diff) | |
parent | 28aa6f05643ecae99563bddf0826e851d39a233b (diff) | |
download | mitmproxy-7191906ba895dba3e1a86573087ef45354126afe.tar.gz mitmproxy-7191906ba895dba3e1a86573087ef45354126afe.tar.bz2 mitmproxy-7191906ba895dba3e1a86573087ef45354126afe.zip |
Merge pull request #1192 from cortesi/testsuite
WIP: Solidify pathod test suite
Diffstat (limited to 'test/pathod/test_app.py')
-rw-r--r-- | test/pathod/test_app.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pathod/test_app.py b/test/pathod/test_app.py index ac89c44c..fbaa773c 100644 --- a/test/pathod/test_app.py +++ b/test/pathod/test_app.py @@ -11,11 +11,11 @@ class TestApp(tutils.DaemonTests): def test_about(self): r = self.getpath("/about") - assert r.ok + assert r.status_code == 200 def test_download(self): r = self.getpath("/download") - assert r.ok + assert r.status_code == 200 def test_docs(self): assert self.getpath("/docs/pathod").status_code == 200 @@ -27,7 +27,7 @@ class TestApp(tutils.DaemonTests): def test_log(self): assert self.getpath("/log").status_code == 200 assert self.get("200:da").status_code == 200 - id = self.d.log()[0]["id"] + id = self.d.expect_log(1)[0]["id"] assert self.getpath("/log").status_code == 200 assert self.getpath("/log/%s" % id).status_code == 200 assert self.getpath("/log/9999999").status_code == 404 |