2007-05-20 03:51:21 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-06-07 16:08:47 +00:00
|
|
|
from __future__ import unicode_literals
|
2007-05-20 03:51:21 +00:00
|
|
|
|
2014-10-31 10:38:53 +00:00
|
|
|
from django.template import Context, Template
|
2015-02-11 17:29:20 +00:00
|
|
|
from django.test import SimpleTestCase, modify_settings
|
2007-05-20 03:51:21 +00:00
|
|
|
|
|
|
|
|
2015-02-11 17:29:20 +00:00
|
|
|
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.webdesign'})
|
|
|
|
class WebdesignTest(SimpleTestCase):
|
2010-10-10 01:06:56 +00:00
|
|
|
|
|
|
|
def test_lorem_tag(self):
|
2014-10-31 10:38:53 +00:00
|
|
|
t = Template("{% load webdesign %}{% lorem 3 w %}")
|
2010-10-10 01:06:56 +00:00
|
|
|
self.assertEqual(t.render(Context({})),
|
2012-06-07 16:08:47 +00:00
|
|
|
'lorem ipsum dolor')
|