def METHOD_NAME(nvr: str):
    def check_in_build_dir(build_dir):
        dockerignore = build_dir.path / DOCKERIGNORE
        dockerignore_content = dockerignore.read_text()
        final_content = DOCKERIGNORE_CONTENT
        final_content += f"\n!{DOCKERFILE_FILENAME}-{nvr}\n"
        assert dockerignore_content == final_content
    return check_in_build_dir