Skip to content
Snippets Groups Projects
Commit 85d6eb0e authored by jkerdreu's avatar jkerdreu
Browse files

Added device test

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2796 b32b6428-25c9-4566-ad07-03861ab6144f
parent 1cf2f89d
Branches
No related tags found
No related merge requests found
......@@ -12,6 +12,16 @@ def new_engine():
class TestEngine(unittest.TestCase):
def test_devices(self):
dev = Device("test.basic",tools.get_random_uuid())
eng = Engine(port=TEST_PORT)
eng.add_device(dev)
self.assertEqual(eng.devices,[dev,])
eng.remove_device(dev)
self.assertEqual(eng.devices,[])
eng.add_devices([dev,])
self.assertEqual(eng.devices,[dev,])
def test_start_stop(self):
eng = Engine(port=TEST_PORT)
dev = Device("test.basic",tools.get_random_uuid())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment