Skip to content

Commit

Permalink
Use assertEqual instead of assertEquals for Python 3.11 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi authored and Asif Saif Uddin committed Oct 13, 2021
1 parent cbfbe22 commit 17ff472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ def test_model_manager_add(self):
apple.tags.add("baz", "wow", tag_kwargs={"official": False})

# We should end up with 4 tags
self.assertEquals(apple.tags.count(), 4)
self.assertEquals(apple.tags.filter(official=True).count(), 2)
self.assertEquals(apple.tags.filter(official=False).count(), 2)
self.assertEqual(apple.tags.count(), 4)
self.assertEqual(apple.tags.filter(official=True).count(), 2)
self.assertEqual(apple.tags.filter(official=False).count(), 2)


class TagModelDirectTestCase(TagModelTestCase):
Expand Down

0 comments on commit 17ff472

Please sign in to comment.