]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Test port arg in BoB.start_cmdctl()
authorMukund Sivaraman <muks@isc.org>
Thu, 15 Nov 2012 06:48:43 +0000 (12:18 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 15 Nov 2012 06:48:43 +0000 (12:18 +0530)
src/bin/bind10/tests/bind10_test.py.in

index fd36bcd5b1832925d5449d6ee568828b4075423d..debf0cf2a41773b58957bbae69a74a7103908a2e 100644 (file)
@@ -1550,6 +1550,13 @@ class TestBossComponents(unittest.TestCase):
         self.assertEqual('b10-cmdctl', bob.started_process_name)
         self.assertEqual(['b10-cmdctl', '-v'], bob.started_process_args)
 
+        # with port
+        bob.verbose = True
+        bob.cmdctl_port = 9353
+        bob.start_cmdctl()
+        self.assertEqual('b10-cmdctl', bob.started_process_name)
+        self.assertEqual(['b10-cmdctl', '--port=9353', '-v'], bob.started_process_args)
+
 class SocketSrvTest(unittest.TestCase):
     """
     This tests some methods of boss related to the unix domain sockets used