mirror of https://github.com/django/django.git
11 lines
265 B
Python
11 lines
265 B
Python
|
from unittest import TestCase
|
||
|
|
||
|
from django.utils.functional import lazy
|
||
|
|
||
|
|
||
|
class FunctionalTestCase(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)
|