mirror of https://github.com/django/django.git
22 lines
629 B
Python
22 lines
629 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')
|