CallCase.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:jsondata 作者: ArnoCan 项目源码 文件源码
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
    #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号