BIND 10 trac2353, updated. 7ba306a2e14dd31e1bf8350c2d27b9741af7e101 [2353] Add test for BoB.get_processes()

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Nov 6 07:31:39 UTC 2012


The branch, trac2353 has been updated
       via  7ba306a2e14dd31e1bf8350c2d27b9741af7e101 (commit)
      from  9b6c74f8e85b29db87fb4724698d9fb9cc53dcc4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7ba306a2e14dd31e1bf8350c2d27b9741af7e101
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Nov 6 13:01:23 2012 +0530

    [2353] Add test for BoB.get_processes()

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bind10/tests/bind10_test.py.in |   10 ++++++++++
 1 file changed, 10 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 3caa691..3ab8bff 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1346,6 +1346,16 @@ class TestBossComponents(unittest.TestCase):
         self.assertFalse(component.restarted)
         self.assertFalse(component in bob.components_to_restart)
 
+    def test_get_processes(self):
+        '''Test that procsses are returned correctly.'''
+        bob = MockBob()
+        bob.runnable = True
+        component = MockComponent('test', 53, 'Test')
+        bob.components[53] = component
+
+        process_list = bob.get_processes()
+        self.assertEqual([[53, 'test', 'Test']], process_list)
+
     def test_reap_children(self):
         '''Test that children are queued to be restarted when they ask for it.'''
         bob = MockBob()



More information about the bind10-changes mailing list