def _find_response(self, args): for response in self._responses: if response.matches_args(args): return response return falsey_object('NoValueFound')
def __init__(self, stub): self._stub = stub self._call_args = falsey_object('NoCallArgsSet')
def find_stub(self, obj, name): for added_stub in self._added_stubs: if added_stub.is_for(obj, name): return added_stub.stub return falsey_object('NoStubFound')