From b008f31e27ecd19e59e597629cb2da931baa918e Mon Sep 17 00:00:00 2001 From: gwen Date: Sun, 8 Jul 2012 21:15:59 +0200 Subject: [PATCH] came prepared for setitem tests --- test/test_option_setting.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_option_setting.py b/test/test_option_setting.py index c7b7459..01f8859 100644 --- a/test/test_option_setting.py +++ b/test/test_option_setting.py @@ -50,6 +50,16 @@ def test_attribute_access_with_multi(): config.string = ["foo", "bar"] assert config.string == ["foo", "bar"] +def test_item_access_with_multi(): + s = StrOption("string", "", default=["string"], multi=True) + descr = OptionDescription("options", "", [s]) + config = Config(descr) + config.string = ["foo", "bar"] + assert config.string == ["foo", "bar"] + config.string[0] = 'changetest' + assert config.string[0] == 'changetest' +# assert config.string[ + #def test_attribute_access_with_multi2(): # s = StrOption("string", "", default="string", multi=True) # descr = OptionDescription("options", "", [s])