def METHOD_NAME(self, repo, environment):
    file = repo.working_dir + "/some_file.txt"
    with open(file, "w") as fp:
        fp.write("some-content\n")
    repo.git.add(file)
    with neptune.init_run(project=environment.project, git_ref=GitRef(repository_path=repo.working_dir)) as run:
        run.sync()
        assert run.exists("source_code/diff")
        run["source_code/diff"].download()
        with open("diff.patch") as fp:
            assert "some-content" in fp.read()