

def testEmptyArray(self):
    stream = StringIO('[]')
    reader = pulljson.JSONPullParser(stream)
    event = reader.nextEvent()
    stream.assertEqual(event.type, pulljson.START_ARRAY)
    event = reader.nextEvent()
    self.assertEqual(event.type, pulljson.END_ARRAY)
    event = reader.nextEvent()
    self.assertIsNone(event)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testEmptyArray/VarMisuse@34/43 `self`->`stream`