def METHOD_NAME(self, tmpdir, job, repo):
    repository = repo()
    repository.base_path = tmpdir
    repository._save(job)
    repository._export(job.id, tmpdir.strpath)
    dir_path = repository.dir_path if repo == _JobFSRepository else os.path.join(tmpdir.strpath, "job")
    assert os.path.exists(os.path.join(dir_path, f"{job.id}.json"))