def test_exists_symlink(): K = KVFS(dict()) K.create("/blub") K.create("/bla") K.symlink("/bla", "/blub")
def test_symlink(): K = KVFS(dict()) K.create("/blub") K.symlink("/bla", "/blub") assert stat.S_ISLNK(K.getattr("/bla")['st_mode']) assert K.readlink("/bla") == "/blub"