'Test get list of series for TestInfluxDBClient.'

def test_get_series_list(self):

    cli = InfluxDBClient(database='db')
    with requests_mock.Mocker() as m:
        example_response = '[{"name":"list_series_result","columns":["time","name"],"points":[[0,"foo"],[0,"bar"]]}]'
        m.register_uri(requests_mock.GET, 'http://localhost:8086/db/db/series', text=example_response)
        self.assertListEqual(cli.get_list_series(), ['foo', 'bar'])
