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
|
|
|
|
2010-10-10 09:06:56 +08:00
|
|
|
from django.template import loader, Context
|
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):
|
|
|
|
t = loader.get_template_from_string("{% load webdesign %}{% lorem 3 w %}")
|
|
|
|
self.assertEqual(t.render(Context({})),
|
2012-06-08 00:08:47 +08:00
|
|
|
'lorem ipsum dolor')
|