Merge "Remove unnecessary setUp function in testcase"
This commit is contained in:
commit
2e61438d2e
@ -99,9 +99,6 @@ class SerializeRemoteExceptionTestCase(test_utils.BaseTestCase):
|
|||||||
cls.scenarios = testscenarios.multiply_scenarios(cls._add_remote,
|
cls.scenarios = testscenarios.multiply_scenarios(cls._add_remote,
|
||||||
cls._exception_types)
|
cls._exception_types)
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(SerializeRemoteExceptionTestCase, self).setUp()
|
|
||||||
|
|
||||||
def test_serialize_remote_exception(self):
|
def test_serialize_remote_exception(self):
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
|
@ -24,12 +24,9 @@ except ImportError:
|
|||||||
from oslo_messaging.tests import utils as test_utils
|
from oslo_messaging.tests import utils as test_utils
|
||||||
|
|
||||||
|
|
||||||
|
@testtools.skipIf(opts is None, "Options not importable")
|
||||||
class OptsTestCase(test_utils.BaseTestCase):
|
class OptsTestCase(test_utils.BaseTestCase):
|
||||||
|
|
||||||
@testtools.skipIf(opts is None, "Options not importable")
|
|
||||||
def setUp(self):
|
|
||||||
super(OptsTestCase, self).setUp()
|
|
||||||
|
|
||||||
def _test_list_opts(self, result):
|
def _test_list_opts(self, result):
|
||||||
self.assertEqual(7, len(result))
|
self.assertEqual(7, len(result))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user