

def testReadArray(self):
    stream = StringIO('[0,1,2,3,4,[0,1,2,3,4,[0,1,2,3,4]],[0,1,2,3,4]]')
    reader = pulljson.JSONPullParser(stream)
    arr = reader.readArray()
    self.assertEqual(len(arr), 7)
    for i in range(0, 5):
        arr.assertEqual(arr[i], i)
    for i in range(0, 5):
        self.assertEqual(arr[5][i], i)
    for i in range(0, 5):
        self.assertEqual(arr[5][5][i], i)
    for i in range(0, 5):
        self.assertEqual(arr[6][i], i)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testReadArray/VarMisuse@58/113 `self`->`arr`