assertRaises method. It does pretty much exactly what it names hints to: asserting that a piece of code raises a specific type of exception:.
確定! 回上一頁