mirror of
https://github.com/django/django.git
synced 2024-12-26 11:06:07 +00:00
ec3ba39fdb
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
11 lines
260 B
Python
11 lines
260 B
Python
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)
|