Browse Source

[2353] Test verbose case of BoB.start_resolver()

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

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

@@ -1520,10 +1520,19 @@ class TestBossComponents(unittest.TestCase):
         '''Test that b10-resolver is started.'''
         bob = MockBobSimple()
         bob.c_channel_env = {}
+
+        # non-verbose case
+        bob.verbose = False
         bob.start_resolver()
         self.assertEqual('b10-resolver', bob.started_process_name)
         self.assertEqual(['b10-resolver'], bob.started_process_args)
 
+        # verbose case
+        bob.verbose = True
+        bob.start_resolver()
+        self.assertEqual('b10-resolver', bob.started_process_name)
+        self.assertEqual(['b10-resolver', '-v'], bob.started_process_args)
+
     def test_start_cmdctl(self):
         '''Test that b10-cmdctl is started.'''
         bob = MockBobSimple()