aboutsummaryrefslogtreecommitdiff
path: root/tests/test_ctl.py
diff options
context:
space:
mode:
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)