From b781354ad1d57be852c859eed4943ead1f1c994d Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 21 Nov 2012 09:06:21 +0100 Subject: [PATCH] Updated assertions in pagination test assertEquals is a deprecated assertion alias. --- tests/regressiontests/pagination/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regressiontests/pagination/tests.py b/tests/regressiontests/pagination/tests.py index b06bebf770..b59e34fe3b 100644 --- a/tests/regressiontests/pagination/tests.py +++ b/tests/regressiontests/pagination/tests.py @@ -227,10 +227,10 @@ class PaginationTests(unittest.TestCase): paginator = ValidAdjacentNumsPaginator(eleven, per_page=6) page1 = paginator.page(1) page2 = paginator.page(2) - self.assertEquals(page1.previous_page_number(), None) - self.assertEquals(page1.next_page_number(), 2) - self.assertEquals(page2.previous_page_number(), 1) - self.assertEquals(page2.next_page_number(), None) + self.assertIsNone(page1.previous_page_number()) + self.assertEqual(page1.next_page_number(), 2) + self.assertEqual(page2.previous_page_number(), 1) + self.assertIsNone(page2.next_page_number()) class ModelPaginationTests(TestCase):