結果 : how to patch method in python