Skip to content

Commit

Permalink
CU-8693bc9kc: Fix usage of old/deprecated assert methods in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mart-r committed Dec 12, 2024
1 parent 63a7564 commit b667b16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/utils/test_memory_optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def test_optimisation_round_trip_cuis(self):
with self.subTest(f'{name}'):
self.assertIsInstance(before, dict)
self.assertIsInstance(after, dict)
self.assertEquals(len(before), len(after))
self.assertEquals(before, after)
self.assertEqual(len(before), len(after))
self.assertEqual(before, after)

def test_optimisation_round_trip_snames(self):
snames_before = self.cdb.snames
Expand All @@ -264,8 +264,8 @@ def test_optimisation_round_trip_snames(self):
snames_after = self.cdb.snames
self.assertIsInstance(snames_before, set)
self.assertIsInstance(snames_after, set)
self.assertEquals(len(snames_before), len(snames_after))
self.assertEquals(snames_before, snames_after)
self.assertEqual(len(snames_before), len(snames_after))
self.assertEqual(snames_before, snames_after)

def test_optimisation_round_trip_dirty(self):
memory_optimiser.perform_optimisation(self.cdb)
Expand Down

0 comments on commit b667b16

Please sign in to comment.