Browse Source

[2781] modify test_start()

add checking self.stats.mccs.stopped after stats stopped
Naoki Kambe 11 years ago
parent
commit
08a44d8edc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/stats/tests/stats_test.py

+ 1 - 0
src/bin/stats/tests/stats_test.py

@@ -355,6 +355,7 @@ class TestStats(unittest.TestCase):
         self.assertRaises(CheckException, self.stats.start)
         self.assertEqual(self.__send_command(self.stats, "status"),
                          (0, "Stats is up. (PID " + str(os.getpid()) + ")"))
+        self.assertTrue(self.stats.mccs.stopped)
 
     def test_start_set_next_polltime(self):
         """Test start() properly sets the time next_polltime to do_poll() next