mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			463 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			463 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # -*- 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')
 |