aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_app.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_app.py')
-rw-r--r--test/test_app.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test_app.py b/test/test_app.py
index 7b2451d6..b3194052 100644
--- a/test/test_app.py
+++ b/test/test_app.py
@@ -47,9 +47,13 @@ class TestApp(tutils.DaemonTests):
assert r.status_code == 200
assert 'Response' in r.content
- r = self.getpath("/response_preview", params=dict(spec="200:b<foo"))
+ r = self.getpath("/response_preview", params=dict(spec="200:b<nonexistent"))
assert r.status_code == 200
- assert 'File access is disabled' in r.content
+ assert 'File access denied' in r.content
+
+ r = self.getpath("/response_preview", params=dict(spec="200:b<file"))
+ assert r.status_code == 200
+ assert 'testfile' in r.content
def test_request_preview(self):
r = self.getpath("/request_preview", params=dict(spec="get:/"))