BIND 10 trac2353, updated. 6b8c62acd872220aeb061f7c6e0fe50348ba3d60 [2353] Add test for BoB.register_process()

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Nov 6 08:35:15 UTC 2012


The branch, trac2353 has been updated
       via  6b8c62acd872220aeb061f7c6e0fe50348ba3d60 (commit)
      from  b0db66ca291884dd9220cda078d9ad3e91d0eb67 (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 6b8c62acd872220aeb061f7c6e0fe50348ba3d60
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Nov 6 14:05:01 2012 +0530

    [2353] Add test for BoB.register_process()

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

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

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index ab25ab1..3b2b7ee 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1393,6 +1393,14 @@ class TestBossComponents(unittest.TestCase):
         self.assertEqual({}, pi.env)
         self.assertNotEqual(0, pi.pid)
 
+    def test_register_process(self):
+        '''Test that processes can be registered with BoB.'''
+        bob = MockBob()
+        bob.runnable = True
+        component = MockComponent('test', 53, 'Test')
+        bob.register_process(53, component)
+        self.assertEqual([[53, 'test', 'Test']], bob.get_processes())
+
 class SocketSrvTest(unittest.TestCase):
     """
     This tests some methods of boss related to the unix domain sockets used



More information about the bind10-changes mailing list