

def testExtraWhiteSpace(self):
    stream = StringIO('{\n\t "key"\n\t\t:   "\t value\n"}   ')
    reader = pulljson.JSONPullParser(stream)
    event = reader.nextEvent()
    self.assertEqual(event.type, pulljson.START_OBJECT)
    event = reader.nextEvent()
    self.assertEqual(event.type, pulljson.FIELD_NAME)
    self.assertEqual(event.value, 'key')
    event = reader.nextEvent()
    self.assertEqual(event.type, pulljson.FIELD_VALUE)
    self.assertEqual(event.value, '\t value\n')
    event = event.nextEvent()
    self.assertEqual(event.type, pulljson.END_OBJECT)
    event = reader.nextEvent()
    self.assertIsNone(event)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testExtraWhiteSpace/VarMisuse@113/166 `reader`->`event`