diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-07-22 23:37:46 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-07-22 23:37:46 +1200 |
commit | 1b03fd6780f69f1d1f460868d5592587cb0c9c50 (patch) | |
tree | 13a588c54e0ed2992963abab2fa15b872ac61606 /test/test_pathoc.py | |
parent | 33208b87205e08b97af07ed6a55c999990a1b8dc (diff) | |
download | mitmproxy-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.py | 5 |
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"]) |