diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-07-07 12:45:06 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2019-07-07 12:45:06 +0200 |
commit | 1396f2ef54b71d4344e28329a4d874a73e2e8e12 (patch) | |
tree | dd330f0547dcff34a67154461ef6f2949381a7a6 /tests/test_ctl.py | |
parent | 820ac976e61c2d908a35a2cb2914dffc9822e095 (diff) |
Split the ctl_client in its own file, using guacamole.
Diffstat (limited to 'tests/test_ctl.py')
-rw-r--r-- | tests/test_ctl.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/test_ctl.py b/tests/test_ctl.py index ed6a5e4..f58ce5a 100644 --- a/tests/test_ctl.py +++ b/tests/test_ctl.py @@ -1,6 +1,5 @@ import os import tempfile -import unittest from tornado.testing import AsyncTestCase, gen_test @@ -41,23 +40,3 @@ class TestCtlServerCommands(AsyncTestCase): )) self.assertIn('ok', res) self.assertEqual(len(self.ctl_server.app.store.objects), 1) - - -class TestCtlClient(unittest.TestCase): - def setUp(self): - self.client = ctl.CtlClient( - config.Config('tests/data/test_config.yaml') - ) - - def test_cmd_ping(self): - cmd = self.client.ping() - self.assertEqual(cmd, {"command": "ping"}) - - def test_cmd_add_object(self): - obj = { - "id": "http://example.org/123456", - "type": "object", - } - cmd = self.client.add_object(obj) - self.assertEqual(cmd['command'], 'add_object') - self.assertEqual(cmd['obj'], obj) |