Skip to content

Commit

Permalink
tests: no longer use deprecated assertEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
gawel committed Jan 3, 2025
1 parent 47d11be commit 6aaa387
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions tests/test_casefold.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ class TestCasefold(BotTestCase):
def test_ascii(self):
bot = self.callFTU(server_config={'CASEMAPPING': 'ascii'})

self.assertEquals(bot.casefold('#testchan\\123[]56'),
'#testchan\\123[]56')
self.assertEquals(bot.casefold('#tESt[]chAn'), '#test[]chan')
self.assertEquals(bot.casefold('#TEsT\\CHaN'), '#test\\chan')
self.assertEqual(bot.casefold('#testchan\\123[]56'),
'#testchan\\123[]56')
self.assertEqual(bot.casefold('#tESt[]chAn'), '#test[]chan')
self.assertEqual(bot.casefold('#TEsT\\CHaN'), '#test\\chan')

self.assertEquals(bot.casefold('#TEsT\\CHaN'), '#test\\chan')

def test_rfc1459(self):
bot = self.callFTU(server_config={'CASEMAPPING': 'rfc1459'})

self.assertEquals(bot.casefold('#testchan\\123[]56'),
'#testchan|123{}56')
self.assertEquals(bot.casefold('#tESt[]chAn'), '#test{}chan')
self.assertEquals(bot.casefold('#TEsT\\CHaN'), '#test|chan')
self.assertEqual(bot.casefold('#testchan\\123[]56'),
'#testchan|123{}56')
self.assertEqual(bot.casefold('#tESt[]chAn'), '#test{}chan')
self.assertEqual(bot.casefold('#TEsT\\CHaN'), '#test|chan')

self.assertEquals(bot.casefold('#TEsT\\CHaN'), '#test|chan')
self.assertEqual(bot.casefold('#TEsT\\CHaN'), '#test|chan')
16 changes: 8 additions & 8 deletions tests/test_quakenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@ def digest(user, algo):
str.lower, algo)

res1 = digest(user1, "md5")
self.assertEquals(res1, '2ed1a1f1d2cd5487d2e18f27213286b9')
self.assertEqual(res1, '2ed1a1f1d2cd5487d2e18f27213286b9')

res2 = digest(user2, "md5")
self.assertEquals(res2, '8990cb478218b6c0063daf08dd7e1a72')
self.assertEqual(res2, '8990cb478218b6c0063daf08dd7e1a72')

res3 = digest(user1, "sha1")
self.assertEquals(res3, 'd0328d41426bd2ace183467ce0a6305445e3d497')
self.assertEqual(res3, 'd0328d41426bd2ace183467ce0a6305445e3d497')

res4 = digest(user2, "sha1")
self.assertEquals(res4, '4de3f1c86dd0f59da44852d507e193c339c4b108')
self.assertEqual(res4, '4de3f1c86dd0f59da44852d507e193c339c4b108')

res5 = digest(user1, "sha256")
self.assertEquals(res5, 'f6eced34321a69c270472d06c50e959c48e9fd323'
'b2c5d3194f44b50a118a7ea')
self.assertEqual(res5, 'f6eced34321a69c270472d06c50e959c48e9fd323'
'b2c5d3194f44b50a118a7ea')

res6 = digest(user2, "sha256")
self.assertEquals(res6, '504056d53b2fc4fd783dc4f086dabc59f845d201e650'
'b96dfa95dacc8cac2892')
self.assertEqual(res6, '504056d53b2fc4fd783dc4f086dabc59f845d201e650'
'b96dfa95dacc8cac2892')

def test_simple_auth(self):
bot = self.callFTU()
Expand Down

0 comments on commit 6aaa387

Please sign in to comment.