can remove config from a metaconfig
This commit is contained in:
@ -185,6 +185,17 @@ def test_meta_new_config():
|
||||
assert len(list(meta.config.list())) == 3
|
||||
|
||||
|
||||
def test_meta_pop_config():
|
||||
od = make_description()
|
||||
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
||||
assert len(list(meta.config.list())) == 2
|
||||
meta.config.new('newconf1')
|
||||
assert len(list(meta.config.list())) == 3
|
||||
meta.config.pop('newconf1')
|
||||
assert len(list(meta.config.list())) == 2
|
||||
raises(ConfigError, "meta.config.pop('newconf1')")
|
||||
|
||||
|
||||
def test_meta_new_config_wrong_name():
|
||||
od = make_description()
|
||||
meta = MetaConfig(['name1', 'name2'], optiondescription=od)
|
||||
|
Reference in New Issue
Block a user