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