From 984e91e28f3fb1d3f87f3f1de9fd54922b91c23c Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 15 Jan 2013 07:51:33 -0800 Subject: [PATCH] Removed some uses of the deprecated assertEquals --- tests/modeltests/delete/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/modeltests/delete/tests.py b/tests/modeltests/delete/tests.py index 0a3ddcfc2e..da0430145c 100644 --- a/tests/modeltests/delete/tests.py +++ b/tests/modeltests/delete/tests.py @@ -234,7 +234,7 @@ class DeletionTests(TestCase): 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 @@ class DeletionTests(TestCase): 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):