assertRaises to catch exception in test case

后端 未结 0 982
有刺的猬
有刺的猬 2021-02-08 09:04

In my python test case, I test it to catch an exception throws in my method:

self.assertRaises(Excpetion, lambda : myfunction(anObject))

Where in \'myfuction\', it

相关标签:
回答
  • 消灭零回复
提交回复
热议问题