def testCase001(self):
"""Load persistent schema from files into into memory.
"""
global sval
global datafile
global schemafile
# schema
schemafile = os.path.abspath(os.path.dirname(__file__))+os.sep+str('schema.jsd')
if not os.path.isfile(schemafile):
raise BaseException("Missing JSONschema:file="+str(schemafile))
with open(schemafile) as schema_file:
sval = myjson.load(schema_file)
if sval == None:
raise BaseException("Failed to load schema:"+str(schema_file))
#
# Create by object
#
评论列表
文章目录