Removed some uses of the deprecated assertEquals

This commit is contained in:
Alex Gaynor 2013-01-15 07:51:33 -08:00
parent 74d72e21b4
commit 984e91e28f
1 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ class DeletionTests(TestCase):
def log_post_delete(instance, **kwargs): def log_post_delete(instance, **kwargs):
self.assertTrue(R.objects.filter(pk=instance.r_id)) self.assertTrue(R.objects.filter(pk=instance.r_id))
self.assertEquals(type(instance), S) self.assertIs(type(instance), S)
deletions.append(instance.id) deletions.append(instance.id)
r = R.objects.create(pk=1) r = R.objects.create(pk=1)
@ -247,8 +247,8 @@ class DeletionTests(TestCase):
finally: finally:
models.signals.post_delete.disconnect(log_post_delete) models.signals.post_delete.disconnect(log_post_delete)
self.assertEquals(len(deletions), 1) self.assertEqual(len(deletions), 1)
self.assertEquals(deletions[0], 1) self.assertEqual(deletions[0], 1)
@skipUnlessDBFeature("can_defer_constraint_checks") @skipUnlessDBFeature("can_defer_constraint_checks")
def test_can_defer_constraint_checks(self): def test_can_defer_constraint_checks(self):