示例#1
0
def test_noexists_readlink():
	K = KVFS(dict())
	K.readlink("/blub")
示例#2
0
def test_regular_readlink():
	K = KVFS(dict())
	K.create("/blub")
	K.readlink("/blub")
示例#3
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"