結果 : how to assert errors in python