'Test unicode chunked query for TestInfluxDBClient object.'

def test_query_chunked_unicode(self):

    cli = InfluxDBClient(database='db')
    example_object = {'points': [[1415206212980, 10001, u('unicode-\xcf\x89')], [1415197271586, 10001, u('more-unicode-\xcf\x90')]], 'name': 'foo', 'columns': ['time', 'sequence_number', 'val']}
    example_response = (json.dumps(example_object) + json.dumps(example_object))
    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.GET, 'http://localhost:8086/db/db/series', text=example_response)
        self.assertListEqual(cli.query('select    *    from    foo', chunked=True), [example_object, example_object])
