Datasets:
File size: 502 Bytes
907001b | 1 2 3 4 5 6 7 8 9 10 11 12 | def expect(obj, strict=None, times=None, atleast=None, atmost=None, between=None):
"""pass"""
if strict is None:
strict = True
theMock = _get_mock(obj, strict=strict)
verification_fn = _get_wanted_verification(times=times, atleast=atleast, atmost=atmost, between=between)
class Expect(object):
def __getattr__(self, method_name):
return invocation.StubbedInvocation(theMock, method_name, verification=verification_fn, strict=strict)
return Expect() |