Remove unnecessary setUp and tearDown

setUp and tearDown will be automatically called around each
testcase, so this is to remove setUp and tearDown that doing
nothing additional than super to keep code clean.

Change-Id: I3331d753da43c90f73082e6514a96b9fb9b67181
This commit is contained in:
zhufl 2016-09-20 11:59:08 +08:00
parent ab3bfca8ac
commit cbdf9454be
3 changed files with 0 additions and 12 deletions

View File

@ -185,9 +185,6 @@ class TestPost(api_base.FunctionalTest):
class TestCertPolicyEnforcement(api_base.FunctionalTest):
def setUp(self):
super(TestCertPolicyEnforcement, self).setUp()
def _common_policy_check(self, rule, func, *arg, **kwarg):
self.policy.set_rules({rule: "project_id:non_fake"})
response = func(*arg, **kwarg)

View File

@ -44,9 +44,6 @@ class db_rec(object):
class TestMagnumServiceController(api_base.FunctionalTest):
def setUp(self):
super(TestMagnumServiceController, self).setUp()
def test_empty(self):
response = self.get_json('/mservices')
self.assertEqual([], response['mservices'])

View File

@ -19,12 +19,6 @@ from magnum.common.x509 import validator as v
class TestValidators(unittest.TestCase):
def setUp(self):
super(TestValidators, self).setUp()
def tearDown(self):
super(TestValidators, self).tearDown()
def _build_key_usage(self, critical=False):
# Digital Signature and Key Encipherment are enabled
key_usage = c_x509.KeyUsage(