aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-07-22 23:37:46 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-07-22 23:37:46 +1200
commit1b03fd6780f69f1d1f460868d5592587cb0c9c50 (patch)
tree13a588c54e0ed2992963abab2fa15b872ac61606 /test/test_pathod.py
parent33208b87205e08b97af07ed6a55c999990a1b8dc (diff)
downloadmitmproxy-1b03fd6780f69f1d1f460868d5592587cb0c9c50.tar.gz
mitmproxy-1b03fd6780f69f1d1f460868d5592587cb0c9c50.tar.bz2
mitmproxy-1b03fd6780f69f1d1f460868d5592587cb0c9c50.zip
Allow execution of specs from file, using +./path
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index 4a8d90d5..d917e25c 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -121,6 +121,10 @@ class _DaemonTests:
assert l["type"] == "error"
assert "Invalid" in l["msg"]
+ def test_access_denied(self):
+ rsp = self.get("=nonexistent")
+ assert rsp.status_code == 800
+
class TestDaemon(_DaemonTests):
SSL = False