]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1596] Update test
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 10 Feb 2012 12:30:15 +0000 (13:30 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Fri, 10 Feb 2012 12:32:43 +0000 (13:32 +0100)
Put some more realistic data there

src/lib/python/isc/bind10/tests/component_test.py

index b14821c4c7095f03a5347ed1fe6f659f793490ca..ec0e8af70d054f7ff3b0cc27a5f0a8a81ceedd23 100644 (file)
@@ -573,10 +573,10 @@ class ComponentTests(BossUtils, unittest.TestCase):
         component.start()
         self.assertTrue(component.running())
         self.assertEqual('component', self.__start_simple_params)
+        component.pid = lambda: 42
         component.stop()
         self.assertFalse(component.running())
-        # The PID is None, as we don't give it one when faking the start
-        self.assertEqual(('component', 'Address', None),
+        self.assertEqual(('component', 'Address', 42),
                          self.__stop_process_params)
 
     def test_component_kill(self):