test if new_config copy owner

owners.meta is no more a special owners
This commit is contained in:
Emmanuel Garette 2018-09-15 10:45:36 +02:00
parent 87594307c9
commit 84d1f85b90
2 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -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)
# ____________________________________________________________