diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-10 09:20:34 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-10 09:20:34 +0100 |
| commit | c0d72c500cb301417caf3510806708688db548fc (patch) | |
| tree | 298321027838371933ded369e3b3c517dd0cc562 | |
| parent | 41046aa819e9c5d35cff061f27a52c2f3a99b7a5 (diff) | |
Simplify is_modifiable() test.
| -rw-r--r-- | kconfigtest.py | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/kconfigtest.py b/kconfigtest.py index d7845cf..1afdbe5 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -90,21 +90,14 @@ def run_selftests(): print "Testing is_modifiable()..." c = kconfiglib.Config("Kconfiglib/tests/Kmodifiable") - for s in (c["VISIBLE"], - c["TRISTATE_SELECTED_TO_M"], - c["VISIBLE_STRING"], - c["VISIBLE_INT"], - c["VISIBLE_HEX"]): - verify(s.is_modifiable(), - "{0} should be modifiable".format(s.get_name())) - for s in (c["NOT_VISIBLE"], - c["SELECTED_TO_Y"], - c["BOOL_SELECTED_TO_M"], - c["NOT_VISIBLE_STRING"], - c["NOT_VISIBLE_INT"], - c["NOT_VISIBLE_HEX"]): - verify(not s.is_modifiable(), - "{0} should not be modifiable".format(s.get_name())) + for s in ("VISIBLE", "TRISTATE_SELECTED_TO_M", "VISIBLE_STRING", + "VISIBLE_INT", "VISIBLE_HEX"): + verify(c[s].is_modifiable(), + "{0} should be modifiable".format(c[s].get_name())) + for s in ("NOT_VISIBLE", "SELECTED_TO_Y", "BOOL_SELECTED_TO_M", + "NOT_VISIBLE_STRING", "NOT_VISIBLE_INT", "NOT_VISIBLE_HEX"): + verify(not c[s].is_modifiable(), + "{0} should not be modifiable".format(c[s].get_name())) # # get_lower/upper_bound() and get_assignable_values() |
