From b150d9946013758a2a13eee751ac828d8582d944 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 15 Mar 2019 00:42:01 +0100 Subject: [2.2.x] Simplified test_transform()s in db_functions.math. Backport of 258110d6cdea5050f8df0bbc9af3fcd9bd342d29 from master. --- tests/db_functions/math/test_cot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/db_functions/math/test_cot.py') diff --git a/tests/db_functions/math/test_cot.py b/tests/db_functions/math/test_cot.py index 5af0403221..d876648598 100644 --- a/tests/db_functions/math/test_cot.py +++ b/tests/db_functions/math/test_cot.py @@ -50,5 +50,5 @@ class CotTests(TestCase): with register_lookup(DecimalField, Cot): 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__cot__gt=0) - self.assertQuerysetEqual(objs, [Decimal('1.0')], lambda a: a.n1) + obj = DecimalModel.objects.filter(n1__cot__gt=0).get() + self.assertEqual(obj.n1, Decimal('1.0')) -- cgit v1.3