TST: Change depreciated unittest assertEquals method to assertEqual

pull/183/head
Steven Hiscocks 2013-04-21 10:28:34 +01:00
parent c9b1b88bfc
commit 3936793413
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class JailReaderTest(unittest.TestCase):
action = "mail-whois[name=SSH]"
expected = ['mail-whois', {'name': 'SSH'}]
result = JailReader.splitAction(action)
self.assertEquals(expected, result)
self.assertEqual(expected, result)
class FilterReaderTest(unittest.TestCase):
@ -150,7 +150,7 @@ class FilterReaderTest(unittest.TestCase):
# Add sort as configreader uses dictionary and therefore order
# is unreliable
self.assertEquals(sorted(filterReader.convert()), sorted(output))
self.assertEqual(sorted(filterReader.convert()), sorted(output))
class JailsReaderTest(unittest.TestCase):