def runTest(self):
from examples.jsonParser import jsonObject
from test.jsonParserTests import test1,test2,test3,test4,test5
from test.jsonParserTests import test1,test2,test3,test4,test5
expected = [
[],
[],
[],
[],
[],
]
import pprint
for t,exp in zip((test1,test2,test3,test4,test5),expected):
result = jsonObject.parseString(t)
## print result.dump()
result.pprint()
print()
## if result.asList() != exp:
## print "Expected %s, parsed results as %s" % (exp, result.asList())
评论列表
文章目录