Browse Source

[2353] Test port arg in BoB.start_cmdctl()

Mukund Sivaraman 12 years ago
parent
commit
36d2b848c6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/bin/bind10/tests/bind10_test.py.in

+ 7 - 0
src/bin/bind10/tests/bind10_test.py.in

@@ -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