coolblaze03's picture
Add files using upload-large-folder tool
29a4423 verified
Raw
History Blame Contribute Delete
360 Bytes
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()