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