aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_app.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-10-25 10:59:18 +1300
committerAldo Cortesi <aldo@nullcube.com>2012-10-25 10:59:18 +1300
commit6174e46023e798517ac206b7681dd9c7d36b1283 (patch)
tree77909d09a82834be448903d7d0ef97de5439f0a4 /test/test_app.py
parent173b5c596e72700544f0252040adf3cbe8ebcb50 (diff)
downloadmitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.tar.gz
mitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.tar.bz2
mitmproxy-6174e46023e798517ac206b7681dd9c7d36b1283.zip
Unit test suite love: 100% coverage
Also start figuring out how to sanitize binary data in the JSON API.
Diffstat (limited to 'test/test_app.py')
-rw-r--r--test/test_app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_app.py b/test/test_app.py
index e7c1c085..7b2451d6 100644
--- a/test/test_app.py
+++ b/test/test_app.py
@@ -11,10 +11,15 @@ class TestApp(tutils.DaemonTests):
r = self.getpath("/about")
assert r.ok
+ def test_download(self):
+ r = self.getpath("/download")
+ assert r.ok
+
def test_docs(self):
assert self.getpath("/docs/pathod").status_code == 200
assert self.getpath("/docs/pathoc").status_code == 200
assert self.getpath("/docs/language").status_code == 200
+ assert self.getpath("/docs/libpathod").status_code == 200
assert self.getpath("/docs/test").status_code == 200
def test_log(self):