def METHOD_NAME(os_path_exists, caplog):
    output_file = "output.py"
    updater = files.FileUpdater("input.py", output_file)
    updater._make_output_dirs_if_needed()
    assert "Overwriting file {}".format(output_file) in caplog.text