MCPcopy
hub / github.com/django/django / lazy_wrap

Method lazy_wrap

tests/utils_tests/test_lazyobject.py:336–337  ·  view source on GitHub ↗
(self, wrapped_object)

Source from the content-addressed store, hash-verified

334 # method which all testcases use, we get to make sure all behaviors
335 # tested in the parent testcase also apply to SimpleLazyObject.
336 def lazy_wrap(self, wrapped_object):
337 return SimpleLazyObject(lambda: wrapped_object)
338
339 def test_repr(self):
340 # First, for an unevaluated SimpleLazyObject

Callers 4

test_reprMethod · 0.95
test_addMethod · 0.95
test_raddMethod · 0.95
test_traceMethod · 0.95

Calls 1

SimpleLazyObjectClass · 0.90

Tested by

no test coverage detected