'Test get continuous queries for TestInfluxDBClient.'

def test_get_continuous_queries(self):

    cli = InfluxDBClient(database='db')
    with requests_mock.Mocker() as m:
        example_response = '[    {    "name":    "continuous    queries",    "columns":    [    "time",    "id",    "query"    ],    "points":    [    [    0,    1,    "select    foo(bar,95)    from    \\"foo_bars\\"    group    by    time(5m)    into    response_times.percentiles.5m.95"    ],    [    0,    2,    "select    percentile(value,95)    from    \\"response_times\\"    group    by    time(5m)    into    response_times.percentiles.5m.95"    ]    ]    }    ]'
        m.register_uri(requests_mock.GET, 'http://localhost:8086/db/db/series', text=example_response)
        self.assertListEqual(cli.get_list_continuous_queries(), ['select    foo(bar,95)    from    "foo_bars"    group    by    time(5m)    into    response_times.percentiles.5m.95', 'select    percentile(value,95)    from    "response_times"    group    by    time(5m)    into    response_times.percentiles.5m.95'])
