refactoring, the values are in an OptionValues object

This commit is contained in:
gwen
2013-02-08 11:50:22 +01:00
parent 9259a6e3f7
commit a8e6bac87f
5 changed files with 191 additions and 163 deletions

View File

@ -111,10 +111,10 @@ def test_access_with_multi_default():
s = StrOption("string", "", default=["string"], multi=True)
descr = OptionDescription("options", "", [s])
config = Config(descr)
assert config._cfgimpl_values.owners[s] == 'default'
assert config._cfgimpl_values.getowner(s) == 'default'
config.string = ["foo", "bar"]
assert config.string == ["foo", "bar"]
assert config._cfgimpl_values.owners[s] == 'user'
assert config._cfgimpl_values.getowner(s) == 'user'
#def test_attribute_access_with_multi2():
# s = StrOption("string", "", default="string", multi=True)