aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_pathod.py5
-rw-r--r--test/test_rparse.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index fae00ec2..0adba8e6 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -85,6 +85,11 @@ class CommonTests(tutils.DaemonTests):
rsp = self.get("=nonexistent")
assert rsp.status_code == 800
+ def test_source_access_denied(self):
+ rsp = self.get("200:b</foo")
+ assert rsp.status_code == 800
+ assert "Access Denied" in rsp.content
+
class TestDaemon(CommonTests):
SSL = False
diff --git a/test/test_rparse.py b/test/test_rparse.py
index 5856d86d..88c1b617 100644
--- a/test/test_rparse.py
+++ b/test/test_rparse.py
@@ -69,7 +69,7 @@ class TestMisc:
assert v.get_generator(dict(staticdir=t))
v = rparse.Value.parseString("<path2")[0]
- tutils.raises(rparse.ServerError, v.get_generator, dict(staticdir=t))
+ tutils.raises(rparse.FileAccessDenied, v.get_generator, dict(staticdir=t))
tutils.raises("access disabled", v.get_generator, dict())
v = rparse.Value.parseString("</outside")[0]