def test_noexists_readlink(): K = KVFS(dict()) K.readlink("/blub")
def test_regular_readlink(): K = KVFS(dict()) K.create("/blub") K.readlink("/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"