From 2d94a583463bff84f3eb54100d182025fb9fb413 Mon Sep 17 00:00:00 2001 From: zhufl Date: Mon, 29 Aug 2016 14:24:42 +0800 Subject: [PATCH] Remove unnecessary setUp and resource_setup This is to remove unnecessary setUp and resource_setup to keep code clean. Change-Id: I057847a7e184e9dacd77da6ac03aa4a44ddb2d0d --- neutron/tests/functional/sanity/test_sanity.py | 3 --- neutron/tests/tempest/api/base_security_groups.py | 4 ---- 2 files changed, 7 deletions(-) diff --git a/neutron/tests/functional/sanity/test_sanity.py b/neutron/tests/functional/sanity/test_sanity.py index b6aec474b33..ae168fd3139 100644 --- a/neutron/tests/functional/sanity/test_sanity.py +++ b/neutron/tests/functional/sanity/test_sanity.py @@ -26,9 +26,6 @@ class SanityTestCase(base.BaseTestCase): where someone modifies the API without updating the check script. """ - def setUp(self): - super(SanityTestCase, self).setUp() - def test_nova_notify_runs(self): checks.nova_notify_supported() diff --git a/neutron/tests/tempest/api/base_security_groups.py b/neutron/tests/tempest/api/base_security_groups.py index 8575ba974b2..5028ec121f3 100644 --- a/neutron/tests/tempest/api/base_security_groups.py +++ b/neutron/tests/tempest/api/base_security_groups.py @@ -20,10 +20,6 @@ from neutron.tests.tempest.api import base class BaseSecGroupTest(base.BaseNetworkTest): - @classmethod - def resource_setup(cls): - super(BaseSecGroupTest, cls).resource_setup() - def _create_security_group(self, **kwargs): # Create a security group name = data_utils.rand_name('secgroup-')