def test_bad_ids():
    rl = RangedList(value=["a", "b", "c"])
    with pytest.raises(IndexError):
        rl[4]
    with pytest.raises(IndexError):
        rl.get_value_by_id(-1)
    with pytest.raises(TypeError):
        rl.get_value_by_id("a")
    with pytest.raises(TypeError):
        rl.get_value_by_id(None)
    with pytest.raises(TypeError):
        rl["a"]
def test_high_id():
    rl = RangedList(value=["a", "b", "c"])
    with pytest.raises(IndexError):
        rl[7]
    with pytest.raises(IndexError):
        rl.get_value_by_id(7)