in find_firsts get option only one time

This commit is contained in:
2014-11-11 11:31:23 +01:00
parent 7c5b6e2db2
commit c6c331eb54
2 changed files with 11 additions and 6 deletions

View File

@ -291,6 +291,7 @@ def test_build_dyndescription_context():
dod = DynOptionDescription('dod', '', [st], callback=return_list, callback_params={'': ((val1, False),)})
od = OptionDescription('od', '', [dod, val1])
cfg = Config(od)
cfg._impl_test = True
assert str(cfg) == """[dodval1]
[dodval2]
val1 = ['val1', 'val2']"""