Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated assertions in pagination test

assertEquals is a deprecated assertion alias.
  • Loading branch information...
commit b781354ad1d57be852c859eed4943ead1f1c994d 1 parent 48e8b5e
@claudep claudep authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/pagination/tests.py
View
8 tests/regressiontests/pagination/tests.py
@@ -227,10 +227,10 @@ def test_get_page_hook(self):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.