def METHOD_NAME():
    msg = (
        "Specifying the timeincrement and the timeindex parameter at the same "
        "time is not allowed"
    )
    with pytest.raises(AttributeError, match=msg):
        solph.EnergySystem(
            timeindex=pd.date_range("1/1/2012", periods=2, freq="H"),
            timeincrement=[1, 2, 3, 4],
        )