Permalink
Browse files

Removed some uses of the deprecated assertEquals

  • Loading branch information...
1 parent 74d72e2 commit 984e91e28f3fb1d3f87f3f1de9fd54922b91c23c Alex Gaynor committed Jan 15, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/modeltests/delete/tests.py
View
6 tests/modeltests/delete/tests.py
@@ -234,7 +234,7 @@ def test_relational_post_delete_signals_happen_before_parent_object(self):
def log_post_delete(instance, **kwargs):
self.assertTrue(R.objects.filter(pk=instance.r_id))
- self.assertEquals(type(instance), S)
+ self.assertIs(type(instance), S)
deletions.append(instance.id)
r = R.objects.create(pk=1)
@@ -247,8 +247,8 @@ def log_post_delete(instance, **kwargs):
finally:
models.signals.post_delete.disconnect(log_post_delete)
- self.assertEquals(len(deletions), 1)
- self.assertEquals(deletions[0], 1)
+ self.assertEqual(len(deletions), 1)
+ self.assertEqual(deletions[0], 1)
@skipUnlessDBFeature("can_defer_constraint_checks")
def test_can_defer_constraint_checks(self):

0 comments on commit 984e91e

Please sign in to comment.