diff options
Diffstat (limited to 'tests/db_functions/math/test_cot.py')
| -rw-r--r-- | tests/db_functions/math/test_cot.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/db_functions/math/test_cot.py b/tests/db_functions/math/test_cot.py index 0407f3b45d..5af0403221 100644 --- a/tests/db_functions/math/test_cot.py +++ b/tests/db_functions/math/test_cot.py @@ -11,6 +11,11 @@ from ..models import DecimalModel, FloatModel, IntegerModel class CotTests(TestCase): + def test_null(self): + IntegerModel.objects.create() + obj = IntegerModel.objects.annotate(null_cot=Cot('normal')).first() + self.assertIsNone(obj.null_cot) + def test_decimal(self): DecimalModel.objects.create(n1=Decimal('-12.9'), n2=Decimal('0.6')) obj = DecimalModel.objects.annotate(n1_cot=Cot('n1'), n2_cot=Cot('n2')).first() |
