diff options
Diffstat (limited to 'tests/db_functions/math/test_floor.py')
| -rw-r--r-- | tests/db_functions/math/test_floor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/db_functions/math/test_floor.py b/tests/db_functions/math/test_floor.py index 0c193ef1af..1068e55476 100644 --- a/tests/db_functions/math/test_floor.py +++ b/tests/db_functions/math/test_floor.py @@ -50,5 +50,5 @@ class FloorTests(TestCase): with register_lookup(DecimalField, Floor): DecimalModel.objects.create(n1=Decimal('5.4'), n2=Decimal('0')) DecimalModel.objects.create(n1=Decimal('3.4'), n2=Decimal('0')) - objs = DecimalModel.objects.filter(n1__floor__gt=4) - self.assertQuerysetEqual(objs, [Decimal('5.4')], lambda a: a.n1) + obj = DecimalModel.objects.filter(n1__floor__gt=4).get() + self.assertEqual(obj.n1, Decimal('5.4')) |
