'Test failed write points from df without time index.'

@raises(TypeError)
def test_write_points_from_dataframe_fails_without_time_index(self):

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