]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] add Counter() constructors according to the update
authorNaoki Kambe <kambe@jprs.co.jp>
Thu, 6 Dec 2012 04:05:26 +0000 (13:05 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Thu, 6 Dec 2012 12:56:52 +0000 (21:56 +0900)
src/lib/python/isc/statistics/tests/counter_test.py

index c09d7bf21f80cc87726396fff40c62c47841a11e..231408bd69b7cd4973128e5cd18cb1f59bdc0305 100644 (file)
@@ -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