From 957de74ebe8219b97f628a21004ca83833146713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Wed, 28 Nov 2012 23:44:50 +0200 Subject: [PATCH] [1.5.x] Converted a couple of assertEquals -> assertEqual --- tests/regressiontests/defer_regress/tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/regressiontests/defer_regress/tests.py b/tests/regressiontests/defer_regress/tests.py index 964e4dc7c7..d4d722035f 100644 --- a/tests/regressiontests/defer_regress/tests.py +++ b/tests/regressiontests/defer_regress/tests.py @@ -199,17 +199,17 @@ class DeferRegressionTest(TestCase): self.assertEqual(len(Item.objects.only('one_to_one_item')), 1) with self.assertNumQueries(1): i = Item.objects.select_related('one_to_one_item')[0] - self.assertEquals(i.one_to_one_item.pk, o2o.pk) - self.assertEquals(i.one_to_one_item.name, "second") + self.assertEqual(i.one_to_one_item.pk, o2o.pk) + self.assertEqual(i.one_to_one_item.name, "second") with self.assertNumQueries(1): i = Item.objects.select_related('one_to_one_item').defer( 'value', 'one_to_one_item__name')[0] - self.assertEquals(i.one_to_one_item.pk, o2o.pk) - self.assertEquals(i.name, "first") + self.assertEqual(i.one_to_one_item.pk, o2o.pk) + self.assertEqual(i.name, "first") with self.assertNumQueries(1): - self.assertEquals(i.one_to_one_item.name, "second") + self.assertEqual(i.one_to_one_item.name, "second") with self.assertNumQueries(1): - self.assertEquals(i.value, 42) + self.assertEqual(i.value, 42) def test_defer_with_select_related(self): item1 = Item.objects.create(name="first", value=47)