Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated assertions in pagination test

assertEquals is a deprecated assertion alias.
  • Loading branch information...
commit b781354ad1d57be852c859eed4943ead1f1c994d 1 parent 48e8b5e
Claude Paroz authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  tests/regressiontests/pagination/tests.py
8  tests/regressiontests/pagination/tests.py
@@ -227,10 +227,10 @@ def test_get_page_hook(self):
227 227
         paginator = ValidAdjacentNumsPaginator(eleven, per_page=6)
228 228
         page1 = paginator.page(1)
229 229
         page2 = paginator.page(2)
230  
-        self.assertEquals(page1.previous_page_number(), None)
231  
-        self.assertEquals(page1.next_page_number(), 2)
232  
-        self.assertEquals(page2.previous_page_number(), 1)
233  
-        self.assertEquals(page2.next_page_number(), None)
  230
+        self.assertIsNone(page1.previous_page_number())
  231
+        self.assertEqual(page1.next_page_number(), 2)
  232
+        self.assertEqual(page2.previous_page_number(), 1)
  233
+        self.assertIsNone(page2.next_page_number())
234 234
 
235 235
 
236 236
 class ModelPaginationTests(TestCase):

0 notes on commit b781354

Please sign in to comment.
Something went wrong with that request. Please try again.