'Test query method for TestInfluxDBClient object.'

def test_query(self):

    example_response = u'{"results":    [{"series":    [{"measurement":    "sdfsdfsdf",    "columns":    ["time",    "value"],    "values":    [["2009-11-10T23:00:00Z",    0.64]]}]},    {"series":    [{"measurement":    "cpu_load_short",    "columns":    ["time",    "value"],    "values":    [["2009-11-10T23:00:00Z",    0.64]]}]}]}'
    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.GET, u'http://localhost:8086/query', text=example_response)
        rs = self.cli.query(u'select    *    from    foo')
        self.assertListEqual(list(rs[0].get_points()), [{u'value': 0.64, u'time': u'2009-11-10T23:00:00Z'}])
