aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathoc.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_pathoc.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_pathoc.py')
-rw-r--r--test/test_pathoc.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_pathoc.py b/test/test_pathoc.py
index 310d75f6..784e2ee3 100644
--- a/test/test_pathoc.py
+++ b/test/test_pathoc.py
@@ -41,3 +41,8 @@ class TestDaemon:
def test_conn_err(self):
assert "Invalid server response" in self.tval(["get:'/p/200:d2'"])
+
+ def test_fileread(self):
+ d = tutils.test_data.path("data/request")
+ assert "foo" in self.tval(["+%s"%d])
+ assert "File" in self.tval(["+/nonexistent"])