1
0
mirror of https://github.com/django/django.git synced 2025-01-27 10:39:40 +00:00

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)