test if new_config copy owner
owners.meta is no more a special owners
This commit is contained in:
parent
87594307c9
commit
84d1f85b90
|
@ -185,6 +185,14 @@ def test_meta_new_config():
|
||||||
assert len(list(meta.config.list())) == 3
|
assert len(list(meta.config.list())) == 3
|
||||||
|
|
||||||
|
|
||||||
|
def test_meta_new_config_owner():
|
||||||
|
od = make_description()
|
||||||
|
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
||||||
|
meta.owner.set('meta')
|
||||||
|
meta.config.new('newconf1')
|
||||||
|
assert meta.owner.get() == 'meta'
|
||||||
|
|
||||||
|
|
||||||
def test_meta_new_metaconfig():
|
def test_meta_new_metaconfig():
|
||||||
od = make_description()
|
od = make_description()
|
||||||
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
||||||
|
|
|
@ -303,12 +303,9 @@ owners.user = owners.Owner('user')
|
||||||
"""forced
|
"""forced
|
||||||
special owner when value is forced"""
|
special owner when value is forced"""
|
||||||
owners.forced = owners.Owner('forced')
|
owners.forced = owners.Owner('forced')
|
||||||
"""meta
|
|
||||||
special owner when value comes from metaconfig"""
|
|
||||||
owners.meta = owners.Owner('meta')
|
|
||||||
|
|
||||||
|
|
||||||
forbidden_owners = (owners.default, owners.forced, owners.meta)
|
forbidden_owners = (owners.default, owners.forced)
|
||||||
|
|
||||||
|
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
|
|
Loading…
Reference in New Issue