summaryrefslogtreecommitdiff
path: root/tests/webdesign_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-11 12:29:20 -0500
committerTim Graham <timograham@gmail.com>2015-02-11 12:30:07 -0500
commit8ec306a3a90aa2ec0baa4c9d8df68f0d49947a2c (patch)
tree7a0f0de2bc4ec62da870b20a0efe7c6169012e4d /tests/webdesign_tests
parent7cf3a5786bc76374e743fbc0c1a1c8470a61f6c0 (diff)
downloaddjango-8ec306a3a90aa2ec0baa4c9d8df68f0d49947a2c.tar.gz
Moved contrib.webdesign tests out of contrib.
Diffstat (limited to 'tests/webdesign_tests')
-rw-r--r--tests/webdesign_tests/__init__.py0
-rw-r--r--tests/webdesign_tests/tests.py14
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')