summaryrefslogtreecommitdiff
path: root/tests/db_functions/math/test_acos.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/db_functions/math/test_acos.py')
-rw-r--r--tests/db_functions/math/test_acos.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/db_functions/math/test_acos.py b/tests/db_functions/math/test_acos.py
index a9ba079e4f..04fdf2cf40 100644
--- a/tests/db_functions/math/test_acos.py
+++ b/tests/db_functions/math/test_acos.py
@@ -11,6 +11,11 @@ from ..models import DecimalModel, FloatModel, IntegerModel
class ACosTests(TestCase):
+ def test_null(self):
+ IntegerModel.objects.create()
+ obj = IntegerModel.objects.annotate(null_acos=ACos('normal')).first()
+ self.assertIsNone(obj.null_acos)
+
def test_decimal(self):
DecimalModel.objects.create(n1=Decimal('-0.9'), n2=Decimal('0.6'))
obj = DecimalModel.objects.annotate(n1_acos=ACos('n1'), n2_acos=ACos('n2')).first()