'Test write points from dataframe that fails without time index.'

@raises(TypeError)
def test_write_points_from_dataframe_fails_without_time_index(self):

    dataframe = pd.DataFrame(data=[['1', 1, 1.0], ['2', 2, 2.0]], columns=['column_one', 'column_two', 'column_three'])
    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.POST, 'http://localhost:8086/db/db/series')
        cli = DataFrameClient(database='db')
        cli.write_points({'foo': dataframe})
