2014-12-03 17:36:17 -03:00
|
|
|
from django.test import SimpleTestCase
|
2014-11-11 19:32:44 -06:00
|
|
|
|
2014-12-03 20:21:11 -06:00
|
|
|
from ..utils import render, setup
|
2014-11-11 19:32:44 -06:00
|
|
|
|
|
|
|
|
2014-12-03 17:36:17 -03:00
|
|
|
class BuiltinsTests(SimpleTestCase):
|
2014-11-11 19:32:44 -06:00
|
|
|
|
|
|
|
@setup({'builtins01': '{{ True }}'})
|
|
|
|
def test_builtins01(self):
|
|
|
|
self.assertEqual(render('builtins01'), 'True')
|
|
|
|
|
|
|
|
@setup({'builtins02': '{{ False }}'})
|
|
|
|
def test_builtins02(self):
|
|
|
|
self.assertEqual(render('builtins02'), 'False')
|
|
|
|
|
|
|
|
@setup({'builtins03': '{{ None }}'})
|
|
|
|
def test_builtins03(self):
|
|
|
|
self.assertEqual(render('builtins03'), 'None')
|