2007-05-20 11:51:21 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-06-08 00:08:47 +08:00
|
|
|
from __future__ import unicode_literals
|
2007-05-20 11:51:21 +08:00
|
|
|
|
2010-10-10 09:06:56 +08:00
|
|
|
import unittest
|
2007-05-20 11:51:21 +08:00
|
|
|
|
2014-10-31 18:38:53 +08:00
|
|
|
from django.template import Context, Template
|
2007-05-20 11:51:21 +08:00
|
|
|
|
|
|
|
|
2010-10-10 09:06:56 +08:00
|
|
|
class WebdesignTest(unittest.TestCase):
|
|
|
|
|
|
|
|
def test_lorem_tag(self):
|
2014-10-31 18:38:53 +08:00
|
|
|
t = Template("{% load webdesign %}{% lorem 3 w %}")
|
2010-10-10 09:06:56 +08:00
|
|
|
self.assertEqual(t.render(Context({})),
|
2012-06-08 00:08:47 +08:00
|
|
|
'lorem ipsum dolor')
|