def METHOD_NAME(self):
    df = pd.DataFrame({'start_time': [1., 2., 3.], 'stop_time': [2., 3., 4.], 'label': ['a', 'b', 'c']})
    with self.assertRaises(ValueError):
        TimeIntervals.from_dataframe(df, name='ti_name', columns=[{'name': 'not there'}])