CallCase.py 文件源码

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

项目:jsondata 作者: ArnoCan 项目源码 文件源码
def testCase000(self):
        """Load a data file.
        """
        global jval
        global datafile

        # data
        datafile = os.path.abspath(os.path.dirname(__file__))+os.sep+str('testdata.json')
        if not os.path.isfile(datafile):
            raise BaseException("Missing JSON data:file="+str(datafile))
        # load data
        with open(datafile) as data_file:
            jval = myjson.load(data_file)
        if jval == None:
            raise BaseException("Failed to load data:"+str(data_file))

        jval = jval
        assert jval
        pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号