結果 : pytest patch function to raise exception