Python testing framework provides the following assertion methods to check that exceptions are raised. assertRaises(exception, callable, *args, **kwds).
確定! 回上一頁