Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed some uses of the deprecated assertEquals

  • Loading branch information...
commit 984e91e28f3fb1d3f87f3f1de9fd54922b91c23c 1 parent 74d72e2
authored January 15, 2013

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

  1. 6  tests/modeltests/delete/tests.py
6  tests/modeltests/delete/tests.py
@@ -234,7 +234,7 @@ def test_relational_post_delete_signals_happen_before_parent_object(self):
234 234
 
235 235
         def log_post_delete(instance, **kwargs):
236 236
             self.assertTrue(R.objects.filter(pk=instance.r_id))
237  
-            self.assertEquals(type(instance), S)
  237
+            self.assertIs(type(instance), S)
238 238
             deletions.append(instance.id)
239 239
 
240 240
         r = R.objects.create(pk=1)
@@ -247,8 +247,8 @@ def log_post_delete(instance, **kwargs):
247 247
         finally:
248 248
             models.signals.post_delete.disconnect(log_post_delete)
249 249
 
250  
-        self.assertEquals(len(deletions), 1)
251  
-        self.assertEquals(deletions[0], 1)
  250
+        self.assertEqual(len(deletions), 1)
  251
+        self.assertEqual(deletions[0], 1)
252 252
 
253 253
     @skipUnlessDBFeature("can_defer_constraint_checks")
254 254
     def test_can_defer_constraint_checks(self):

0 notes on commit 984e91e

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