diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 15:12:31 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-24 15:12:31 +1200 |
commit | 877b5a2d116c1ee0a8eb26191a65ff87f7146ae0 (patch) | |
tree | 8df91510161f867960f1e043adf2da23e239ee1b /test/test_test.py | |
parent | 2e558b7e9d435216ff8c4c76df130fbf3936f803 (diff) | |
download | mitmproxy-877b5a2d116c1ee0a8eb26191a65ff87f7146ae0.tar.gz mitmproxy-877b5a2d116c1ee0a8eb26191a65ff87f7146ae0.tar.bz2 mitmproxy-877b5a2d116c1ee0a8eb26191a65ff87f7146ae0.zip |
Add staticdir to test.Test.
Diffstat (limited to 'test/test_test.py')
-rw-r--r-- | test/test_test.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_test.py b/test/test_test.py index 7053bd73..b9a9cfac 100644 --- a/test/test_test.py +++ b/test/test_test.py @@ -38,7 +38,7 @@ class TestDaemonManual: class TestDaemon: @classmethod def setUpAll(self): - self.d = test.Daemon() + self.d = test.Daemon(staticdir=tutils.test_data.path("data")) @classmethod def tearDownAll(self): @@ -67,5 +67,10 @@ class TestDaemon: rsp = self.get("400:msg,b:") assert rsp.status_code == 800 + def test_static(self): + rsp = self.get("200:b<file") + assert rsp.status_code == 200 + assert rsp.content.strip() == "testfile" + |