MCPcopy
hub / github.com/django/django / test_lazy_mod_int

Method test_lazy_mod_int

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

Source from the content-addressed store, hash-verified

206 self.assertEqual(lazy_a() + lazy_b(), "ab")
207
208 def test_lazy_mod_int(self):
209 lazy_4 = lazy(lambda: 4, int)
210 lazy_5 = lazy(lambda: 5, int)
211 self.assertEqual(4 % lazy_5(), 4)
212 self.assertEqual(lazy_4() % 5, 4)
213 self.assertEqual(lazy_4() % lazy_5(), 4)
214
215 def test_lazy_mod_str(self):
216 lazy_a = lazy(lambda: "a%s", str)

Callers

nothing calls this directly

Calls 1

lazyFunction · 0.90

Tested by

no test coverage detected