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