]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Test the values of component registered by BoB.register_process()
authorMukund Sivaraman <muks@isc.org>
Wed, 5 Dec 2012 05:38:54 +0000 (11:08 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 5 Dec 2012 05:38:54 +0000 (11:08 +0530)
src/bin/bind10/tests/bind10_test.py.in

index 0affee82a25a45fd78d5e11ee27e47a3b9755729..798e3fcf6095519881025d5cf2e8e80d17923e46 100644 (file)
@@ -1791,6 +1791,9 @@ class TestBossComponents(unittest.TestCase):
         self.assertFalse(53 in bob.components)
         bob.register_process(53, component)
         self.assertTrue(53 in bob.components)
+        self.assertEqual(bob.components[53].name(), 'test')
+        self.assertEqual(bob.components[53].pid(), 53)
+        self.assertEqual(bob.components[53].address(), 'Test')
 
     def test_start_simple(self):
         '''Test simple process startup.'''