Example #1
0
def test_attributes():
	K = KVFS(dict())
	K.create("/blub")
	attr = K.getattr("/blub")	
	assert not 'extended' in attr
	attr['extended'] = "grins"
	K.setattr("/blub", attr)
	attr = K.getattr("/blub")
	assert 'extended' in attr
	assert attr['extended'] == "grins"
	del attr['extended']
	K.setattr("/blub", attr)
	attr = K.getattr("/blub")
	assert not 'extended' in attr
Example #2
0
def test_noexists_setattr():
	K = KVFS(dict())
	K.setattr("/blub", "meta")