aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Russell <rcoh@rcoh.(none)>2011-01-10 12:21:19 -0500
committerGravatar Russell <rcoh@rcoh.(none)>2011-01-10 12:21:19 -0500
commitcbdc42af021f898e82d3e78ce7c636d3fb5eece0 (patch)
treef36ca72463702c104dd02f026e9fbcd6de3f0da8 /tests
parent1679719e7ca8ce433c5714474a32c926161dc5b8 (diff)
Some performance improvements. Faster evaluation of range-based queries with
lambda expressions. Faster exp with approximated fastexp. Some changes to the component registry.
Diffstat (limited to 'tests')
-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)
+