assert断言

   self.assertEqual(res, data_info['expected'])  通过 与失败

 # try:通过与错误
        #     self.assertEqual(res, data_info['expected'])
        # except Exception as e:
        #     print(e)
        #     raise Exception('--------------',) 抛出异常不走失败走错屋
posted @ 2020-11-25 16:28  一二三开花  阅读(127)  评论(0编辑  收藏  举报