Remove empty overridden unittest.setUp and unittest.tearDown methods.

pull/64472/head
Mads Jensen 5 years ago committed by Matt Clay
parent 377c763334
commit ecc8e51044

@ -35,9 +35,6 @@ class TestErrors(unittest.TestCase):
self.obj = AnsibleBaseYAMLObject()
def tearDown(self):
pass
def test_basic_error(self):
e = AnsibleError(self.message)
self.assertEqual(e.message, self.message)

@ -54,12 +54,6 @@ class NameStringIO(StringIO):
class TestAnsibleLoaderBasic(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_parse_number(self):
stream = StringIO(u"""
1

@ -26,12 +26,6 @@ from ansible.playbook.task import Task
class TestBlock(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_construct_empty_block(self):
b = Block()

@ -31,12 +31,6 @@ from units.mock.path import mock_unfrackpath_noop
class TestPlay(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_empty_play(self):
p = Play.load(dict())
self.assertEqual(str(p), '')

@ -28,12 +28,6 @@ from ansible.template.safe_eval import safe_eval
class TestSafeEval(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_safe_eval_usage(self):
# test safe eval calls with different possible types for the
# locals dictionary, to ensure we don't run into problems like

@ -74,9 +74,6 @@ class TestBackslashEscape(unittest.TestCase):
def setUp(self):
self.env = jinja2.Environment()
def tearDown(self):
pass
def test_backslash_escaping(self):
for test in self.test_data:
@ -89,12 +86,6 @@ class TestBackslashEscape(unittest.TestCase):
class TestCountNewlines(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_zero_length_string(self):
self.assertEquals(_count_newlines_from_end(u''), 0)

Loading…
Cancel
Save