Browse Source

[1596] Update test

Put some more realistic data there
Michal 'vorner' Vaner 13 years ago
parent
commit
03a1f23dbe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/python/isc/bind10/tests/component_test.py

+ 2 - 2
src/lib/python/isc/bind10/tests/component_test.py

@@ -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):