Browse Source

[2225_statistics] add tearDown()

clear statistics data when every test is finished
Naoki Kambe 12 years ago
parent
commit
83e4b764a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/python/isc/statistics/tests/counter_test.py

+ 3 - 0
src/lib/python/isc/statistics/tests/counter_test.py

@@ -64,6 +64,9 @@ class TestBasicMethods(unittest.TestCase):
                                    "item_optional": False,
                                    "item_default": 0.0 }]
 
+    def tearDown(self):
+        self.counter.clear_counters()
+
     def test_clear_counters(self):
         self.counter._statistics_data = {'counter': 1}
         self.counter.clear_counters()