1
0
mirror of https://github.com/django/django.git synced 2024-12-23 17:46:27 +00:00
django/tests/template_tests/syntax_tests/test_builtins.py
2022-02-07 20:37:05 +01:00

21 lines
628 B
Python

from django.test import SimpleTestCase
from ..utils import setup
class BuiltinsTests(SimpleTestCase):
@setup({"builtins01": "{{ True }}"})
def test_builtins01(self):
output = self.engine.render_to_string("builtins01")
self.assertEqual(output, "True")
@setup({"builtins02": "{{ False }}"})
def test_builtins02(self):
output = self.engine.render_to_string("builtins02")
self.assertEqual(output, "False")
@setup({"builtins03": "{{ None }}"})
def test_builtins03(self):
output = self.engine.render_to_string("builtins03")
self.assertEqual(output, "None")