def METHOD_NAME(
    random_location_version_file, file_regression
):
    old_version = "1.2.3"
    new_version = "2.0.0"
    location = f"{random_location_version_file}:version"
    bump.update_version_in_files(old_version, new_version, [location], encoding="utf-8")
    with open(random_location_version_file, "r", encoding="utf-8") as f:
        file_regression.check(f.read(), extension=".lock")