mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
e06971340d
Backport of 8ec306a3a9
from master
15 lines
463 B
Python
15 lines
463 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.template import Context, Template
|
|
from django.test import SimpleTestCase, modify_settings
|
|
|
|
|
|
@modify_settings(INSTALLED_APPS={'append': 'django.contrib.webdesign'})
|
|
class WebdesignTest(SimpleTestCase):
|
|
|
|
def test_lorem_tag(self):
|
|
t = Template("{% load webdesign %}{% lorem 3 w %}")
|
|
self.assertEqual(t.render(Context({})),
|
|
'lorem ipsum dolor')
|