From: Naoki Kambe Date: Thu, 6 Dec 2012 04:05:26 +0000 (+0900) Subject: [2225_statistics] add Counter() constructors according to the update X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1150b0ef4bae79e2ffe254dddd5863690a71d60f;p=thirdparty%2Fkea.git [2225_statistics] add Counter() constructors according to the update --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index c09d7bf21f..231408bd69 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/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