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