'Test failed write points from df with series.'

@raises(TypeError)
def test_write_points_from_dataframe_fails_with_series(self):

    now = pd.Timestamp(u'1970-01-01    00:00+00:00')
    dataframe = pd.Series(data=[1.0, 2.0], index=[now, (now + timedelta(hours=1))])
    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')
