From: Naoki Kambe Date: Thu, 6 Dec 2012 03:12:13 +0000 (+0900) Subject: [2225_statistics] remove the unnecessary setUpClass() methods X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65a2fbba5becb20d276aeb90e5d13d02190828c7;p=thirdparty%2Fkea.git [2225_statistics] remove the unnecessary setUpClass() methods --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index 55e59e8636..c09d7bf21f 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -146,9 +146,7 @@ class TestBasicMethods(unittest.TestCase): timer_name), 0) class BaseTestCounter(): - @classmethod - def setUpClass(cls): - imp.reload(counter) + def setUp(self): self._module_spec = isc.config.module_spec_from_file( self.TEST_SPECFILE_LOCATION) @@ -326,9 +324,6 @@ class BaseTestCounter(): class TestCounter1(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec1.spec' - @classmethod - def setUpClass(cls): - BaseTestCounter.setUpClass() def setUp(self): BaseTestCounter.setUp(self) def tearDown(self): @@ -336,9 +331,6 @@ class TestCounter1(unittest.TestCase, BaseTestCounter): class TestCounter2(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec2.spec' - @classmethod - def setUpClass(cls): - BaseTestCounter.setUpClass() def setUp(self): BaseTestCounter.setUp(self) def tearDown(self): @@ -346,9 +338,6 @@ class TestCounter2(unittest.TestCase, BaseTestCounter): class TestCounter3(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec3.spec' - @classmethod - def setUpClass(cls): - BaseTestCounter.setUpClass() def setUp(self): BaseTestCounter.setUp(self) def tearDown(self):