PyTest can help you with this. It has method that test for raised exception called pytest.raises. ... Here is the full code sample:.
確定! 回上一頁