Clean up unit tests. (#78498)

pull/78504/head
Matt Clay 2 years ago committed by GitHub
parent 89862fda3b
commit 9ee183c4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,12 +37,12 @@ class TestErrors(unittest.TestCase):
def test_basic_error(self):
e = AnsibleError(self.message)
self.assertEqual(e.message, self.message)
self.assertEqual(e.__repr__(), self.message)
self.assertEqual(repr(e), self.message)
def test_basic_unicode_error(self):
e = AnsibleError(self.unicode_message)
self.assertEqual(e.message, self.unicode_message)
self.assertEqual(e.__repr__(), self.unicode_message)
self.assertEqual(repr(e), self.unicode_message)
@patch.object(AnsibleError, '_get_error_lines_from_file')
def test_error_with_kv(self, mock_method):

@ -37,11 +37,11 @@ class TestPlayIterator(unittest.TestCase):
hs.tasks_child_state = HostState(blocks=[0])
hs.rescue_child_state = HostState(blocks=[1])
hs.always_child_state = HostState(blocks=[2])
hs.__repr__()
repr(hs)
hs.run_state = 100
hs.__repr__()
repr(hs)
hs.fail_state = 15
hs.__repr__()
repr(hs)
for i in range(0, 10):
hs.cur_block = i

Loading…
Cancel
Save