Merge "Remove unnecessary setUp and tearDown"

This commit is contained in:
Jenkins 2016-09-22 13:29:52 +00:00 committed by Gerrit Code Review
commit 8ab9113374
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(