

def testStringLiteral(self):
    stream = StringIO('"This is a test"')
    reader = pulljson.JSONPullParser(stream)
    with self.assertRaises(pulljson.JSONParseError) as cm:
        reader.nextEvent()
    self.assertEqual(cm.exception.code, pulljson.JSON_SYNTAX_ERROR, cm.exception.msg)

dataset/ETHPy150Open Teradata/PyTd/test/test_pulljson.py TestJSONPullParser.testStringLiteral/original