From cb69d2e1c7ced951cbf7a31ee286b0ed92cab8a8 Mon Sep 17 00:00:00 2001 From: rcoh Date: Fri, 18 Feb 2011 16:56:43 -0500 Subject: Adding Epydoc generated docs. --- ...otLight.tests.TestComponentRegistry'-pysrc.html | 137 +++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 html/SmootLight.tests.TestComponentRegistry'-pysrc.html (limited to 'html/SmootLight.tests.TestComponentRegistry'-pysrc.html') diff --git a/html/SmootLight.tests.TestComponentRegistry'-pysrc.html b/html/SmootLight.tests.TestComponentRegistry'-pysrc.html new file mode 100644 index 0000000..6ef4258 --- /dev/null +++ b/html/SmootLight.tests.TestComponentRegistry'-pysrc.html @@ -0,0 +1,137 @@ + + + + + SmootLight.tests.TestComponentRegistry' + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Package SmootLight :: + Package tests :: + Module TestComponentRegistry' + + + + + + +
[hide private]
[frames] | no frames]
+
+

Source Code for Module SmootLight.tests.TestComponentRegistry'

+
+ 1  import unittest 
+ 2  import util.ComponentRegistry as compReg 
+ 3  from operationscore.SmootCoreObject import SmootCoreObject  
+
4 -class TestComponentRegistry(unittest.TestCase): +
5 - def setUp(self): +
6 compReg.initRegistry() +
7 +
8 - def tearDown(self): +
9 compReg.clearRegistry() +
10 +
12 comp = SmootCoreObject({'Id': 'obj1'}) +13 compReg.registerComponent(comp) +14 newcomp = compReg.getComponent('obj1') +15 assert comp == newcomp +
16 +
17 - def test_register_new_id(self): +
18 comp = SmootCoreObject({}) +19 cid =compReg.registerComponent(comp) +20 newcomp = compReg.getComponent(cid) +21 assert comp == newcomp +
22 +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + -- cgit v1.2.3