結果 : how to patch a class method in python