From 524d254a59fab592a2bf48a84c762dcf8a04b4d5 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Fri, 28 Sep 2012 21:48:30 +0000 Subject: Remove unnecessary setUp, tearDown and __init__ in tests These methods simply call the same parent class method with the same arguments. This is the default behavior of Python and re-implementing that is unnecessary. Change-Id: I29503f6c5442e2aae645899dc157466e6201ba75 --- nova/tests/scheduler/test_rpcapi.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'nova/tests/scheduler/test_rpcapi.py') diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py index ab97adf5c..100812175 100644 --- a/nova/tests/scheduler/test_rpcapi.py +++ b/nova/tests/scheduler/test_rpcapi.py @@ -29,13 +29,6 @@ FLAGS = flags.FLAGS class SchedulerRpcAPITestCase(test.TestCase): - - def setUp(self): - super(SchedulerRpcAPITestCase, self).setUp() - - def tearDown(self): - super(SchedulerRpcAPITestCase, self).tearDown() - def _test_scheduler_api(self, method, rpc_method, **kwargs): ctxt = context.RequestContext('fake_user', 'fake_project') rpcapi = scheduler_rpcapi.SchedulerAPI() -- cgit