Browse Source

[2353] Directly use bob.components instead of bob.get_processes()

Mukund Sivaraman 12 years ago
parent
commit
7503458897
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/bin/bind10/tests/bind10_test.py.in

+ 3 - 1
src/bin/bind10/tests/bind10_test.py.in

@@ -1474,8 +1474,10 @@ class TestBossComponents(unittest.TestCase):
         bob = MockBob()
         bob.runnable = True
         component = MockComponent('test', 53, 'Test')
+
+        self.assertFalse(53 in bob.components)
         bob.register_process(53, component)
-        self.assertEqual([[53, 'test', 'Test']], bob.get_processes())
+        self.assertTrue(53 in bob.components)
 
     def test_start_simple(self):
         '''Test simple process startup.'''