def METHOD_NAME(self, func, param, mock_func_factory):
    func_mock = mock_func_factory(nominatim.tools.refresh, 'invalidate_osm_object')
    self.call_nominatim('refresh', func, param) == 1
    assert func_mock.called == 0