Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Converted a couple of assertEquals -> assertEqual

  • Loading branch information...
commit 163b471e9ea13e3d9984bde9aad2694646bb8997 1 parent cc3c4a9
Anssi Kääriäinen authored November 28, 2012
12  tests/regressiontests/defer_regress/tests.py
@@ -199,17 +199,17 @@ def test_reverse_one_to_one_relations(self):
199 199
         self.assertEqual(len(Item.objects.only('one_to_one_item')), 1)
200 200
         with self.assertNumQueries(1):
201 201
             i = Item.objects.select_related('one_to_one_item')[0]
202  
-            self.assertEquals(i.one_to_one_item.pk, o2o.pk)
203  
-            self.assertEquals(i.one_to_one_item.name, "second")
  202
+            self.assertEqual(i.one_to_one_item.pk, o2o.pk)
  203
+            self.assertEqual(i.one_to_one_item.name, "second")
204 204
         with self.assertNumQueries(1):
205 205
             i = Item.objects.select_related('one_to_one_item').defer(
206 206
                 'value', 'one_to_one_item__name')[0]
207  
-            self.assertEquals(i.one_to_one_item.pk, o2o.pk)
208  
-            self.assertEquals(i.name, "first")
  207
+            self.assertEqual(i.one_to_one_item.pk, o2o.pk)
  208
+            self.assertEqual(i.name, "first")
209 209
         with self.assertNumQueries(1):
210  
-            self.assertEquals(i.one_to_one_item.name, "second")
  210
+            self.assertEqual(i.one_to_one_item.name, "second")
211 211
         with self.assertNumQueries(1):
212  
-            self.assertEquals(i.value, 42)
  212
+            self.assertEqual(i.value, 42)
213 213
 
214 214
     def test_defer_with_select_related(self):
215 215
         item1 = Item.objects.create(name="first", value=47)

0 notes on commit 163b471

Please sign in to comment.
Something went wrong with that request. Please try again.