mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
		
			
				
	
	
		
			10 lines
		
	
	
		
			277 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			277 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from django.utils import unittest
 | |
| from django.utils.functional import lazy
 | |
| 
 | |
| 
 | |
| class FunctionalTestCase(unittest.TestCase):
 | |
|     def test_lazy(self):
 | |
|         t = lazy(lambda: tuple(range(3)), list, tuple)
 | |
|         for a, b in zip(t(), range(3)):
 | |
|             self.assertEqual(a, b)
 |