From: Mukund Sivaraman Date: Tue, 6 Nov 2012 08:23:21 +0000 (+0530) Subject: [2353] Add test for BoB.start_process() X-Git-Tag: bind10-1.0.0-beta-release~19^2~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0db66ca291884dd9220cda078d9ad3e91d0eb67;p=thirdparty%2Fkea.git [2353] Add test for BoB.start_process() --- diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index 8a0c607561..ab25ab1003 100644 --- a/src/bin/bind10/tests/bind10_test.py.in +++ b/src/bin/bind10/tests/bind10_test.py.in @@ -1384,6 +1384,15 @@ class TestBossComponents(unittest.TestCase): bob.kill_started_components() self.assertEqual([], bob.get_processes()) + def test_start_process(self): + '''Test that processes can be started.''' + bob = MockBob() + pi = bob.start_process('Test Process', ['/bin/true'], {}) + self.assertEqual('Test Process', pi.name) + self.assertEqual(['/bin/true'], pi.args) + self.assertEqual({}, pi.env) + self.assertNotEqual(0, pi.pid) + class SocketSrvTest(unittest.TestCase): """ This tests some methods of boss related to the unix domain sockets used