From: Naoki Kambe Date: Thu, 6 Dec 2012 03:55:43 +0000 (+0900) Subject: [2225_statistics] correct the variable names from the counter object X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf41749b421bd09330ca5cbec3e3e9a3cdae06d7;p=thirdparty%2Fkea.git [2225_statistics] correct the variable names from the counter object --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index b5729ddc34..4c54fe4cf0 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -128,18 +128,18 @@ class TestBasicMethods(unittest.TestCase): counter_name = "counter" timer_name = "seconds" start_time = counter._start_timer() - start_functor(number, cycle, self.counter._incrementer, + start_functor(number, cycle, self.counter.inc, counter_name) counter._stop_timer(start_time, - statistics_data, - statistics_spec, + self.counter._statistics._data, + self.counter._statistics._spec, timer_name) self.assertEqual( - counter._get_counter(statistics_data, + counter._get_counter(self.counter._statistics._data, counter_name), number * cycle) self.assertGreater( - counter._get_counter(statistics_data, + counter._get_counter(self.counter._statistics._data, timer_name), 0) class BaseTestCounter():