from ie_pandas import DataFrame
import pytest


def test_input_int_in_dict_of_lists_repr_wrong_col_index():
    obj = {"age": [30, 53, 31, 47, 32], "albums": [4, 10, 2, 5, 4]}

    with pytest.raises(Exception) as exc_info:
        df = DataFrame(obj, colindex=["AGE", "ALBUMS", "TOOMANY"])

    exception_raised = exc_info.value

    assert exception_raised
