suppression of the notion of normal and expert mode

This commit is contained in:
gwen
2012-08-13 09:32:33 +02:00
parent a88d203790
commit d05feb78f9
6 changed files with 16 additions and 52 deletions

View File

@ -250,16 +250,6 @@ def test_setoption_from_option():
cfg = Config(descr)
booloption.setoption(cfg, False, 'owner')
assert cfg.bool == False
# ____________________________________________________________
def test_set_mode_in_config():
booloption = BoolOption('bool', 'Test boolean option', default=True,
mode='expert')
descr = OptionDescription('descr', '', [booloption])
cfg = Config(descr)
cfg.cfgimpl_set_mode('expert')
raises(ModeOptionError, "cfg.bool")
cfg.cfgimpl_set_mode('normal')
assert cfg.bool == True
#____________________________________________________________
def test_dwim_set():
descr = OptionDescription("opt", "", [