'Test out of bounds nextitem() with mode=raise.'

def test_last_raise(self, neighborlist):

    neighborlist._mode = usertypes.NeighborList.Modes.exception
    neighborlist.lastitem()
    assert (neighborlist._idx == 0)
    with pytest.raises(IndexError):
        neighborlist.nextitem()
    assert (neighborlist._idx == 0)
