unittest常用的断言方法 #msg:判断不成立时需要反馈的字符串 assertEqual(self, first, second, msg=None) --判断两个参数相等:first == second assertNotEqual(self, first, second, msg=None) --判断两个参数不相等:first != second assertIn(self, member, container, msg=None) --判断是字符串是否包含:member in con…