Merge "Remove unnecessary setUp and tearDown"
This commit is contained in:
commit
8ab9113374
|
@ -185,9 +185,6 @@ class TestPost(api_base.FunctionalTest):
|
||||||
|
|
||||||
class TestCertPolicyEnforcement(api_base.FunctionalTest):
|
class TestCertPolicyEnforcement(api_base.FunctionalTest):
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(TestCertPolicyEnforcement, self).setUp()
|
|
||||||
|
|
||||||
def _common_policy_check(self, rule, func, *arg, **kwarg):
|
def _common_policy_check(self, rule, func, *arg, **kwarg):
|
||||||
self.policy.set_rules({rule: "project_id:non_fake"})
|
self.policy.set_rules({rule: "project_id:non_fake"})
|
||||||
response = func(*arg, **kwarg)
|
response = func(*arg, **kwarg)
|
||||||
|
|
|
@ -44,9 +44,6 @@ class db_rec(object):
|
||||||
|
|
||||||
class TestMagnumServiceController(api_base.FunctionalTest):
|
class TestMagnumServiceController(api_base.FunctionalTest):
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(TestMagnumServiceController, self).setUp()
|
|
||||||
|
|
||||||
def test_empty(self):
|
def test_empty(self):
|
||||||
response = self.get_json('/mservices')
|
response = self.get_json('/mservices')
|
||||||
self.assertEqual([], response['mservices'])
|
self.assertEqual([], response['mservices'])
|
||||||
|
|
|
@ -19,12 +19,6 @@ from magnum.common.x509 import validator as v
|
||||||
|
|
||||||
|
|
||||||
class TestValidators(unittest.TestCase):
|
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):
|
def _build_key_usage(self, critical=False):
|
||||||
# Digital Signature and Key Encipherment are enabled
|
# Digital Signature and Key Encipherment are enabled
|
||||||
key_usage = c_x509.KeyUsage(
|
key_usage = c_x509.KeyUsage(
|
||||||
|
|
Loading…
Reference in New Issue