aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-25 12:39:51 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-25 12:39:51 +1200
commit24f69419df148eb333591b5e8b654cd2987c0843 (patch)
treee3688f3b15f89ec169f8d1c138d45a9d0843d49b
parentadac9a35c3b0f7fb46a47495950ce5ca2dcc80e3 (diff)
downloadmitmproxy-24f69419df148eb333591b5e8b654cd2987c0843.tar.gz
mitmproxy-24f69419df148eb333591b5e8b654cd2987c0843.tar.bz2
mitmproxy-24f69419df148eb333591b5e8b654cd2987c0843.zip
Unit test about page.
-rw-r--r--libpathod/app.py2
-rw-r--r--test/test_app.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/libpathod/app.py b/libpathod/app.py
index 0b123e94..c1fb670f 100644
--- a/libpathod/app.py
+++ b/libpathod/app.py
@@ -37,7 +37,7 @@ def render(s, **kwargs):
@app.route('/index.html')
def index():
return render("index.html", section="main")
- j
+
@app.route('/about')
@app.route('/about.html')
diff --git a/test/test_app.py b/test/test_app.py
index da6431c9..e7c1c085 100644
--- a/test/test_app.py
+++ b/test/test_app.py
@@ -7,6 +7,10 @@ class TestApp(tutils.DaemonTests):
assert r.status_code == 200
assert r.content
+ def test_about(self):
+ r = self.getpath("/about")
+ assert r.ok
+
def test_docs(self):
assert self.getpath("/docs/pathod").status_code == 200
assert self.getpath("/docs/pathoc").status_code == 200