Merge pull request #1755 from loic/typo

Fixed DeprecationWarning caused by assertEquals.
This commit is contained in:
Tim Graham 2013-10-15 12:30:02 -07:00
commit 6138186848
1 changed files with 2 additions and 2 deletions

View File

@ -151,5 +151,5 @@ class SelectRelatedTests(TestCase):
queryset = HybridSpecies.objects.select_related('parent_1').select_related('parent_2') queryset = HybridSpecies.objects.select_related('parent_1').select_related('parent_2')
with self.assertNumQueries(1): with self.assertNumQueries(1):
obj = queryset[0] obj = queryset[0]
self.assertEquals(obj.parent_1, parent_1) self.assertEqual(obj.parent_1, parent_1)
self.assertEquals(obj.parent_2, parent_2) self.assertEqual(obj.parent_2, parent_2)