def test_frame_lookup():
    input_data = [('foo', 15), ('bar', 19), ('baz', 26)]
    lookup = FrameLookup(input_data)
    assert len(lookup) == (15 + 19 + 26)
    assert lookup[15] == ('bar', 19, 0)
    assert lookup[14] == ('foo', 15, 14)
    assert lookup[15 + 19 + 4] == ('baz', 26, 4)


# The test below is crashing on Travis, though not on mkg's machine. Ian
# suggests commenting the test out for now, to fast-track PR #1133.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/utils/tests/test_video.py/test_frame_lookup/original