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.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/test_test.py b/test/test_test.py
index 6e80dd77..c10cee4c 100644
--- a/test/test_test.py
+++ b/test/test_test.py
@@ -1,10 +1,10 @@
import time
import libpry
import requests
-from libpathod import test
+from libpathod import test, version
-class uDaemon(libpry.AutoTree):
+class uDaemonManual(libpry.AutoTree):
def test_startstop(self):
d = test.Daemon()
rsp = requests.get("http://localhost:%s/p/202"%d.port)
@@ -15,7 +15,19 @@ class uDaemon(libpry.AutoTree):
assert not rsp.ok
+class uDaemon(libpry.AutoTree):
+ def setUpAll(self):
+ self.d = test.Daemon()
+
+ def tearDownAll(self):
+ self.d.shutdown()
+
+ def test_info(self):
+ assert tuple(self.d.info()["version"]) == version.IVERSION
+
+
tests = [
+ uDaemonManual(),
uDaemon()
]