MCPcopy
hub / github.com/django/django / test_lazy

Method test_lazy

tests/utils_tests/test_functional.py:6–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class FunctionalTests(SimpleTestCase):
6 def test_lazy(self):
7 t = lazy(lambda: tuple(range(3)), list, tuple)
8 for a, b in zip(t(), range(3)):
9 self.assertEqual(a, b)
10
11 def test_lazy_base_class(self):
12 """lazy also finds base class methods in the proxy object"""

Callers

nothing calls this directly

Calls 1

lazyFunction · 0.90

Tested by

no test coverage detected