执行测试报告时报AttributeError: 'TestCase' object has no attribute 'addTest'

问题相关代码,请勿粘贴截图

img


这段代码是我抄的网课的,但是发现自己用不了

AttributeError: 'TestCase' object has no attribute 'addTest'
TestCase没有addTest这个属性。
发一下全部代码。