aboutsummaryrefslogtreecommitdiff
path: root/tests/TestComponentRegistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestComponentRegistry.py')
-rw-r--r--tests/TestComponentRegistry.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/TestComponentRegistry.py b/tests/TestComponentRegistry.py
index 5ada524..9de1a32 100644
--- a/tests/TestComponentRegistry.py
+++ b/tests/TestComponentRegistry.py
@@ -4,13 +4,16 @@ from operationscore.SmootCoreObject import SmootCoreObject
class TestComponentRegistry(unittest.TestCase):
def setUp(self):
compReg.initRegistry()
+
def tearDown(self):
compReg.clearRegistry()
+
def test_register_component_id_specified(self):
comp = SmootCoreObject({'Id': 'obj1'})
compReg.registerComponent(comp)
newcomp = compReg.getComponent('obj1')
assert comp == newcomp
+
def test_register_new_id(self):
comp = SmootCoreObject({})
cid =compReg.registerComponent(comp)