Updated assertions in pagination test

assertEquals is a deprecated assertion alias.
This commit is contained in:
Claude Paroz 2012-11-21 09:06:21 +01:00
parent 48e8b5e944
commit b781354ad1
1 changed files with 4 additions and 4 deletions

View File

@ -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):