From 40d54f7e2b04dc53be81a24e50f8e66be968e6cb Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 5 Dec 2012 11:08:54 +0530 Subject: [PATCH] [2353] Test the values of component registered by BoB.register_process() --- src/bin/bind10/tests/bind10_test.py.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index 0affee82a2..798e3fcf60 100644 --- a/src/bin/bind10/tests/bind10_test.py.in +++ b/src/bin/bind10/tests/bind10_test.py.in @@ -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.'''