From: Naoki Kambe Date: Mon, 26 Nov 2012 13:08:12 +0000 (+0900) Subject: [2225_statistics] change the order of the parent classes and add setUp() and tearDown... X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a10b2ed25935e83cd0402ae4df81e6d321d75e8;p=thirdparty%2Fkea.git [2225_statistics] change the order of the parent classes and add setUp() and tearDown() into the child classes --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index 48eed8da3a..947bd4139b 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -322,14 +322,26 @@ class BaseTestCounter(): 'socket/%s/tcp/%s' % counter_name, 2) self.check_dump_statistics() -class TestCounter1(BaseTestCounter, unittest.TestCase): +class TestCounter1(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec1.spec' + def setUp(self): + BaseTestCounter.setUp(self) + def tearDown(self): + BaseTestCounter.tearDown(self) -class TestCounter2(BaseTestCounter, unittest.TestCase): +class TestCounter2(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec2.spec' + def setUp(self): + BaseTestCounter.setUp(self) + def tearDown(self): + BaseTestCounter.tearDown(self) -class TestCounter3(BaseTestCounter, unittest.TestCase): +class TestCounter3(unittest.TestCase, BaseTestCounter): TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec3.spec' + def setUp(self): + BaseTestCounter.setUp(self) + def tearDown(self): + BaseTestCounter.tearDown(self) if __name__== "__main__": unittest.main()