summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-07 04:34:30 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-07 04:34:30 +0100
commit80a134251e1ea0125e872a91fbc4d3e42c97b341 (patch)
tree080f584a0c92e458b12a163217ce4c7ed70c3669 /testsuite.py
parentb449a039ab57c4965bb935a3806d1fe54a6ae811 (diff)
s/overriden/overridden/
Add test coverage for that Choice.__repr__() path too.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite.py b/testsuite.py
index f2a4eb7..90efc3d 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -618,6 +618,12 @@ choice
<choice CHOICE, tristate, "choice", mode y, user mode y, CHOICE_2 selected, CHOICE_2 selected by user, visibility y, Kconfiglib/tests/Krepr:30>
""")
+ c.named_choices["CHOICE"].set_value(1)
+
+ verify_repr(c.named_choices["CHOICE"], """
+<choice CHOICE, tristate, "choice", mode m, user mode m, CHOICE_2 selected by user (overridden), visibility y, Kconfiglib/tests/Krepr:30>
+""")
+
verify_repr(c.syms["CHOICE_HOOK"].nodes[0].next.item, """
<choice, tristate, "optional choice", mode n, visibility n, optional, Kconfiglib/tests/Krepr:43>
""")