From 776b6470c10bdcf1302fa95c2e81be2b11bb2fdc Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Wed, 16 Oct 2013 02:28:04 +0700 Subject: [PATCH] Fixed DeprecationWarning caused by assertEquals. --- tests/select_related/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/select_related/tests.py b/tests/select_related/tests.py index 8949d99788..59b19d97f6 100644 --- a/tests/select_related/tests.py +++ b/tests/select_related/tests.py @@ -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)