Parcourir la source

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

Mukund Sivaraman il y a 12 ans
Parent
commit
230de14b1b
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 9 0
      src/bin/bind10/tests/bind10_test.py.in

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

@@ -1501,10 +1501,19 @@ class TestBossComponents(unittest.TestCase):
         '''Test that b10-auth is started.'''
         bob = MockBobSimple()
         bob.c_channel_env = {}
+
+        # non-verbose case
+        bob.verbose = False
         bob.start_auth()
         self.assertEqual('b10-auth', bob.started_process_name)
         self.assertEqual(['b10-auth'], bob.started_process_args)
 
+        # verbose case
+        bob.verbose = True
+        bob.start_auth()
+        self.assertEqual('b10-auth', bob.started_process_name)
+        self.assertEqual(['b10-auth', '-v'], bob.started_process_args)
+
     # there is another test with this name (minus the digits), but both
     # do different things.
     def test_start_resolver(self):