MCPcopy
hub / github.com/django/django / test_lazy_mul_int

Method test_lazy_mul_int

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

Source from the content-addressed store, hash-verified

220 self.assertEqual(lazy_a() % lazy_b(), "ab")
221
222 def test_lazy_mul_int(self):
223 lazy_4 = lazy(lambda: 4, int)
224 lazy_5 = lazy(lambda: 5, int)
225 self.assertEqual(4 * lazy_5(), 20)
226 self.assertEqual(lazy_4() * 5, 20)
227 self.assertEqual(lazy_4() * lazy_5(), 20)
228
229 def test_lazy_mul_list(self):
230 lazy_4 = lazy(lambda: [4], list)

Callers

nothing calls this directly

Calls 1

lazyFunction · 0.90

Tested by

no test coverage detected