summaryrefslogtreecommitdiff
path: root/tests/db_functions/math/test_atan.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_functions/math/test_atan.py')
-rw-r--r--tests/db_functions/math/test_atan.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/db_functions/math/test_atan.py b/tests/db_functions/math/test_atan.py
index fbeeded48c..a14e7de581 100644
--- a/tests/db_functions/math/test_atan.py
+++ b/tests/db_functions/math/test_atan.py
@@ -50,5 +50,5 @@ class ATanTests(TestCase):
with register_lookup(DecimalField, ATan):
DecimalModel.objects.create(n1=Decimal('3.12'), n2=Decimal('0'))
DecimalModel.objects.create(n1=Decimal('-5'), n2=Decimal('0'))
- objs = DecimalModel.objects.filter(n1__atan__gt=0)
- self.assertQuerysetEqual(objs, [Decimal('3.12')], lambda a: a.n1)
+ obj = DecimalModel.objects.filter(n1__atan__gt=0).get()
+ self.assertEqual(obj.n1, Decimal('3.12'))