def METHOD_NAME(self, index_mock):
    self.update_states([nominatim.tools.replication.UpdateState.UP_TO_DATE,
                        nominatim.tools.replication.UpdateState.UP_TO_DATE])
    with pytest.raises(IndexError):
        self.call_nominatim()
    assert index_mock.called == 2