結果 : how to test a method in python