Browse Source

[2225_statistics] add Counter() constructors according to the update

Naoki Kambe 12 years ago
parent
commit
1150b0ef4b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/python/isc/statistics/tests/counter_test.py

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

@@ -50,7 +50,7 @@ class TestBasicMethods(unittest.TestCase):
     TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec1.spec'
 
     def setUp(self):
-        self.counter = counter.Counter.init(self.TEST_SPECFILE_LOCATION)
+        self.counter = counter.Counter(self.TEST_SPECFILE_LOCATION)
 
     def tearDown(self):
         self.counter.clear_counters()
@@ -150,8 +150,8 @@ class BaseTestCounter():
     def setUp(self):
         self._module_spec = isc.config.module_spec_from_file(
             self.TEST_SPECFILE_LOCATION)
-        self.counter = counter.Counter.init(self.TEST_SPECFILE_LOCATION)
         self._statistics_data = {}
+        self.counter = counter.Counter(self.TEST_SPECFILE_LOCATION)
         self._entire_server    = self.counter._entire_server
         self._perzone_prefix   = self.counter._perzone_prefix
         self._xfrrunning_names = self.counter._xfrrunning_names