結果 : mock function raise exception python