def _patch_object(target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs):
 return _patch((lambda : target), attribute, new, spec, create, spec_set, autospec, new_callable, kwargs)

def _patch_object ( target , attribute , new = DEFAULT , spec = None , create = False , spec_set = None , autospec = None , new_callable = None , ** kwargs ) : return _patch ( ( lambda : target ) , attribute , new , spec , create , spec_set , autospec , new_callable , kwargs )
patch the named member on an object with a mock object .