結果 : how to patch a method in python