tests: s/assertEquals/assertEqual/

Assert assertEquals is deprecated alias of assertEqual.
This commit is contained in:
Tomasz Miąsko 2018-12-12 00:00:00 +00:00
parent c69a98057f
commit 6b0ad94fb4

View File

@ -285,7 +285,7 @@ comment: {standard_bottom_comment}
"""Test running with no arguments at all.""" """Test running with no arguments at all."""
result = self.runMkenums() result = self.runMkenums()
self.assertEqual('', result.err) self.assertEqual('', result.err)
self.assertEquals('''/* {standard_top_comment} */ self.assertEqual('''/* {standard_top_comment} */
/* {standard_bottom_comment} */'''.format(**result.subs), /* {standard_bottom_comment} */'''.format(**result.subs),
@ -295,7 +295,7 @@ comment: {standard_bottom_comment}
"""Test running with an empty template and no header files.""" """Test running with an empty template and no header files."""
result = self.runMkenumsWithTemplate('') result = self.runMkenumsWithTemplate('')
self.assertEqual('', result.err) self.assertEqual('', result.err)
self.assertEquals('''/* {standard_top_comment} */ self.assertEqual('''/* {standard_top_comment} */
/* {standard_bottom_comment} */'''.format(**result.subs), /* {standard_bottom_comment} */'''.format(**result.subs),
@ -305,7 +305,7 @@ comment: {standard_bottom_comment}
"""Test running with a complete template, but no header files.""" """Test running with a complete template, but no header files."""
result = self.runMkenumsWithAllSubstitutions() result = self.runMkenumsWithAllSubstitutions()
self.assertEqual('', result.err) self.assertEqual('', result.err)
self.assertEquals(''' self.assertEqual('''
comment comment
comment: {standard_top_comment} comment: {standard_top_comment}