diff options
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" + |