]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Test verbose case of BoB.start_auth()
authorMukund Sivaraman <muks@isc.org>
Thu, 15 Nov 2012 06:44:56 +0000 (12:14 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 15 Nov 2012 06:44:56 +0000 (12:14 +0530)
src/bin/bind10/tests/bind10_test.py.in

index ba36b361edcb19fba6c5a89156b5d0940026dd0e..57b7562f2bd300c5e1e0e357408b6b2fdef0437d 100644 (file)
@@ -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):