mirror of
https://github.com/django/django.git
synced 2024-12-30 13:05:45 +00:00
21 lines
628 B
Python
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")
|