Datasets:
File size: 360 Bytes
907001b | 1 2 3 4 5 6 7 8 9 10 11 12 13 | def when(obj, strict=None):
"""pass"""
if isinstance(obj, str):
obj = get_obj(obj)
if strict is None:
strict = True
theMock = _get_mock(obj, strict=strict)
class When(object):
def __getattr__(self, method_name):
return invocation.StubbedInvocation(theMock, method_name, strict=strict)
return When() |