summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kconfigtest.py b/kconfigtest.py
index 088b456..0faafc5 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -504,6 +504,19 @@ def run_selftests():
"Kconfiglib/tests/defconfig_2")
#
+ # Misc. minor APIs
+ #
+
+ c = kconfiglib.Config("Kconfiglib/tests/Kmisc")
+
+ print "Testing is_optional()..."
+
+ verify(not c.get_choices()[0].is_optional(),
+ "First choice should not be optional")
+ verify(c.get_choices()[1].is_optional(),
+ "Second choice should be optional")
+
+ #
# Object dependencies
#