diff options
Diffstat (limited to 'tests/db_functions/math/test_abs.py')
| -rw-r--r-- | tests/db_functions/math/test_abs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/db_functions/math/test_abs.py b/tests/db_functions/math/test_abs.py index b87f6844bc..a9e0175e84 100644 --- a/tests/db_functions/math/test_abs.py +++ b/tests/db_functions/math/test_abs.py @@ -49,5 +49,5 @@ class AbsTests(TestCase): with register_lookup(DecimalField, Abs): DecimalModel.objects.create(n1=Decimal('-1.5'), n2=Decimal('0')) DecimalModel.objects.create(n1=Decimal('-0.5'), n2=Decimal('0')) - objs = DecimalModel.objects.filter(n1__abs__gt=1) - self.assertQuerysetEqual(objs, [Decimal('-1.5')], lambda a: a.n1) + obj = DecimalModel.objects.filter(n1__abs__gt=1).get() + self.assertEqual(obj.n1, Decimal('-1.5')) |
