cache for properties is now in get_properties and not for validate_properties

This commit is contained in:
2013-04-20 11:25:14 +02:00
parent a11768ef43
commit 54fe8d0f4b
5 changed files with 57 additions and 52 deletions

View File

@ -12,7 +12,7 @@ def make_description():
stroption1 = StrOption('str1', 'Test string option',
properties=('mandatory', ))
stroption2 = UnicodeOption('unicode2', 'Test string option',
properties=('mandatory', ))
properties=('mandatory', ))
stroption3 = StrOption('str3', 'Test string option', multi=True,
properties=('mandatory', ))
descr = OptionDescription('tiram', '', [stroption, stroption1, stroption2, stroption3])

View File

@ -162,7 +162,7 @@ def test_hidden_if_in():
assert not setting.has_property('hidden', stroption)
cfg.int = 1
raises(PropertiesOptionError, "cfg.str")
raises(PropertiesOptionError, 'cfg.str= "uvw"')
raises(PropertiesOptionError, 'cfg.str="uvw"')
assert setting.has_property('hidden', stroption)
def test_hidden_if_in_with_group():