cannot add unvalaible consistency for an option

This commit is contained in:
2014-10-25 22:47:40 +02:00
parent 8f950620f7
commit 471af4fd75
5 changed files with 1009 additions and 783 deletions

View File

@ -20,6 +20,13 @@ def test_consistency():
raises(ConfigError, "a.impl_add_consistency('not_equal', 'a')")
def test_consistency_not_exists():
a = IntOption('a', '')
b = IntOption('b', '')
od = OptionDescription('od', '', [a, b])
raises(ConfigError, "a.impl_add_consistency('not_exists', b)")
def test_consistency_warnings_only():
a = IntOption('a', '')
b = IntOption('b', '')