summaryrefslogtreecommitdiffstats
path: root/nova/tests/scheduler/test_rpcapi.py
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-09-28 21:48:30 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2012-09-28 21:48:30 +0000
commit524d254a59fab592a2bf48a84c762dcf8a04b4d5 (patch)
treeabf3d17d269e779f723c3c05cf889fec4a2a8e7b /nova/tests/scheduler/test_rpcapi.py
parent64702669c879dbc5cf27712ef8fadb9fd043664d (diff)
downloadnova-524d254a59fab592a2bf48a84c762dcf8a04b4d5.tar.gz
nova-524d254a59fab592a2bf48a84c762dcf8a04b4d5.tar.xz
nova-524d254a59fab592a2bf48a84c762dcf8a04b4d5.zip
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
Diffstat (limited to 'nova/tests/scheduler/test_rpcapi.py')
-rw-r--r--nova/tests/scheduler/test_rpcapi.py7
1 files changed, 0 insertions, 7 deletions
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()