aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_test.py')
-rw-r--r--test/test_test.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/test_test.py b/test/test_test.py
new file mode 100644
index 00000000..6e80dd77
--- /dev/null
+++ b/test/test_test.py
@@ -0,0 +1,21 @@
+import time
+import libpry
+import requests
+from libpathod import test
+
+
+class uDaemon(libpry.AutoTree):
+ def test_startstop(self):
+ d = test.Daemon()
+ rsp = requests.get("http://localhost:%s/p/202"%d.port)
+ assert rsp.ok
+ assert rsp.status_code == 202
+ d.shutdown()
+ rsp = requests.get("http://localhost:%s/p/202"%d.port)
+ assert not rsp.ok
+
+
+
+tests = [
+ uDaemon()
+]