diff options
Diffstat (limited to 'tests/db_functions/math/test_ln.py')
| -rw-r--r-- | tests/db_functions/math/test_ln.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/db_functions/math/test_ln.py b/tests/db_functions/math/test_ln.py index 3c690d56cc..fd2ac87c06 100644 --- a/tests/db_functions/math/test_ln.py +++ b/tests/db_functions/math/test_ln.py @@ -50,5 +50,5 @@ class LnTests(TestCase): with register_lookup(DecimalField, Ln): 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__ln__gt=0) - self.assertQuerysetEqual(objs, [Decimal('12.0')], lambda a: a.n1) + obj = DecimalModel.objects.filter(n1__ln__gt=0).get() + self.assertEqual(obj.n1, Decimal('12.0')) |
