From: Mukund Sivaraman Date: Tue, 6 Nov 2012 09:29:47 +0000 (+0530) Subject: [2353] Add test for BoB.start_simple() X-Git-Tag: bind10-1.0.0-beta-release~19^2~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6210dae2a6749d8c1e328de433c91058fd54b756;p=thirdparty%2Fkea.git [2353] Add test for BoB.start_simple() --- diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index 3b2b7eedb5..030c72be73 100644 --- a/src/bin/bind10/tests/bind10_test.py.in +++ b/src/bin/bind10/tests/bind10_test.py.in @@ -1401,6 +1401,17 @@ class TestBossComponents(unittest.TestCase): bob.register_process(53, component) self.assertEqual([[53, 'test', 'Test']], bob.get_processes()) + def test_start_simple(self): + '''Test simple process startup.''' + bob = BoB() + bob.verbose = False + bob.c_channel_env = {} + pi = bob.start_simple('/bin/true') + self.assertEqual('/bin/true', 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