assert的写法,测试报告结果不同

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

 # try:通过与错误
        #     self.assertEqual(res, data_info['expected'])
        # except Exception as e:
        #     print(e)
        #     raise Exception('--------------',) 抛出异常不走失败走错误
厚积薄发
原文地址:https://www.cnblogs.com/yr434/p/13913633.html