(self)
| 46 | self.assertAlmostEqual(obj.big_cot, 1 / math.tan(obj.big)) |
| 47 | |
| 48 | def test_transform(self): |
| 49 | with register_lookup(DecimalField, Cot): |
| 50 | DecimalModel.objects.create(n1=Decimal("12.0"), n2=Decimal("0")) |
| 51 | DecimalModel.objects.create(n1=Decimal("1.0"), n2=Decimal("0")) |
| 52 | obj = DecimalModel.objects.filter(n1__cot__gt=0).get() |
| 53 | self.assertEqual(obj.n1, Decimal("1.0")) |
nothing calls this directly
no test coverage detected