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