Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Converted a couple of assertEquals -> assertEqual

  • Loading branch information...
commit 163b471e9ea13e3d9984bde9aad2694646bb8997 1 parent cc3c4a9
@akaariai akaariai authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 tests/regressiontests/defer_regress/tests.py
View
12 tests/regressiontests/defer_regress/tests.py
@@ -199,17 +199,17 @@ def test_reverse_one_to_one_relations(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.