From baa152ac2f5f7d807a529160d7ac28dd7dfa88ec Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 1 May 2019 19:11:31 +0200 Subject: ping command for pyapdctl --- tests/test_ctl.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/test_ctl.py') 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) -- cgit v1.2.3