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
|
||||
|
||||
|
||||
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():
|
||||
od = make_description()
|
||||
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
||||
|
@ -303,12 +303,9 @@ owners.user = owners.Owner('user')
|
||||
"""forced
|
||||
special owner when value is 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
Block a user