aboutsummaryrefslogtreecommitdiff
path: root/tests/test_ctl.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-05-01 19:11:31 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-05-01 19:11:31 +0200
commitbaa152ac2f5f7d807a529160d7ac28dd7dfa88ec (patch)
treebf78bb53e36d9b9f30053d81ed10d5684319547a /tests/test_ctl.py
parentd1bffce0242f721a4bd3a61e88aaff6f6fa49248 (diff)
ping command for pyapdctl
Diffstat (limited to 'tests/test_ctl.py')
-rw-r--r--tests/test_ctl.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_ctl.py b/tests/test_ctl.py
index 404a430..ddac775 100644
--- a/tests/test_ctl.py
+++ b/tests/test_ctl.py
@@ -1,7 +1,7 @@
import os
import tempfile
-from tornado.testing import AsyncTestCase
+from tornado.testing import AsyncTestCase, gen_test
from pyapd import ctl, config
@@ -14,5 +14,7 @@ class TestCtlServer(AsyncTestCase):
conf.ctl_socket = os.path.join(self.tempdir.name, 'pyapd.sock')
self.ctl_server = ctl.CtlServer(conf)
- def test_nothing(self):
- pass
+ @gen_test
+ def test_ping_command(self):
+ res = yield self.ctl_server.get_command('{"command": "ping"}')
+ self.assertIn('pong', res)