def METHOD_NAME(cls):
    cls.__repodir = tempfile.TemporaryDirectory()
    cls.url = os.path.abspath(cls.__repodir.name)
    cls.fn = os.path.join(cls.url, "test.txt")
    with open(cls.fn, "w") as f:
        f.write("Hello world!")
    os.symlink("test.txt", os.path.join(cls.url, "link.txt"))
    os.mkdir(os.path.join(cls.url, "sub"))
    with open(os.path.join(cls.url, "sub", "sub.txt"), "w") as f:
        f.write("Nested")
    cls.digest = hashDirectory(cls.url)