Datasets:
| 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() |