diff options
author | Tim Graham <timograham@gmail.com> | 2015-02-11 12:29:20 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-02-11 12:30:07 -0500 |
commit | 8ec306a3a90aa2ec0baa4c9d8df68f0d49947a2c (patch) | |
tree | 7a0f0de2bc4ec62da870b20a0efe7c6169012e4d /tests/webdesign_tests | |
parent | 7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 (diff) | |
download | django-8ec306a3a90aa2ec0baa4c9d8df68f0d49947a2c.tar.gz |
Moved contrib.webdesign tests out of contrib.
Diffstat (limited to 'tests/webdesign_tests')
-rw-r--r-- | tests/webdesign_tests/__init__.py | 0 | ||||
-rw-r--r-- | tests/webdesign_tests/tests.py | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/webdesign_tests/__init__.py b/tests/webdesign_tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/webdesign_tests/__init__.py diff --git a/tests/webdesign_tests/tests.py b/tests/webdesign_tests/tests.py new file mode 100644 index 0000000000..0f8508c1a8 --- /dev/null +++ b/tests/webdesign_tests/tests.py @@ -0,0 +1,14 @@ +# -*- 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') |