aboutsummaryrefslogtreecommitdiff
path: root/tests/TestComponentRegistry.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestComponentRegistry.py')
-rw-r--r--tests/TestComponentRegistry.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/TestComponentRegistry.py b/tests/TestComponentRegistry.py
new file mode 100644
index 0000000..1acd0c8
--- /dev/null
+++ b/tests/TestComponentRegistry.py
@@ -0,0 +1,11 @@
+import unittest
+import util.ComponentRegistry as compReg
+class TestComponentRegistry(unittest.TestCase):
+ def setUp(self):
+ compReg.initRegistry()
+ def tearDown(self):
+ compReg.clearRegistry()
+ def test_register_component(self):
+ comp = SmootCoreObject({'Id': obj1})
+ compReg.registerComponent(comp)
+