]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Test verbose case of BoB.start_simple()
authorMukund Sivaraman <muks@isc.org>
Fri, 9 Nov 2012 08:00:51 +0000 (13:30 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 9 Nov 2012 08:00:51 +0000 (13:30 +0530)
src/bin/bind10/tests/bind10_test.py.in

index 57d4c0d0291eeb3904976b552f864d6cbeaa629f..27f79827a565f49c75cedb48b4dd55b6af4b78f1 100644 (file)
@@ -1481,14 +1481,24 @@ class TestBossComponents(unittest.TestCase):
     def test_start_simple(self):
         '''Test simple process startup.'''
         bob = BoB()
-        bob.verbose = False
         bob.c_channel_env = {}
+
+        # non-verbose case
+        bob.verbose = False
         pi = bob.start_simple('/bin/true')
         self.assertEqual('/bin/true', pi.name)
         self.assertEqual(['/bin/true'], pi.args)
         self.assertEqual({}, pi.env)
         self.assertNotEqual(0, pi.pid)
 
+        # verbose case
+        bob.verbose = True
+        pi = bob.start_simple('/bin/true')
+        self.assertEqual('/bin/true', pi.name)
+        self.assertEqual(['/bin/true', '-v'], pi.args)
+        self.assertEqual({}, pi.env)
+        self.assertNotEqual(0, pi.pid)
+
     # there is another test with this name (minus the digits), but both
     # do different things.
     def test_start_auth2(self):