結果 : how to test errors in python