'Test reading a sequence of JSON values from a string.'

def test_load(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]]}]}]}'
    res = list(chunked_json.loads(example_response))
    self.assertListEqual([{u'results': [{u'series': [{u'values': [[u'2009-11-10T23:00:00Z', 0.64]], u'measurement': u'sdfsdfsdf', u'columns': [u'time', u'value']}]}, {u'series': [{u'values': [[u'2009-11-10T23:00:00Z', 0.64]], u'measurement': u'cpu_load_short', u'columns': [u'time', u'value']}]}]}], res)
