aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/data/file1
-rw-r--r--test/test_test.py7
2 files changed, 7 insertions, 1 deletions
diff --git a/test/data/file b/test/data/file
new file mode 100644
index 00000000..26918572
--- /dev/null
+++ b/test/data/file
@@ -0,0 +1 @@
+testfile
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"
+