summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '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')