def METHOD_NAME(self, params, mock_func_factory):
    func_mock = mock_func_factory(nominatim.tools.refresh, 'invalidate_osm_object')
    assert self.call_nominatim('refresh', *params) == 0
    assert func_mock.called == len(params)/2