結果 : how to write a test case in python