1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed DeprecationWarning caused by assertEquals.

This commit is contained in:
Loic Bistuer 2013-10-16 02:28:04 +07:00
parent 2af58a2cef
commit 776b6470c1

View File

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