示例#1
0
def test_exists_symlink():
	K = KVFS(dict())
	K.create("/blub")
	K.create("/bla")
	K.symlink("/bla", "/blub")
示例#2
0
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"