~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Benoît Pierre
  • Date: 2011-10-08 19:01:59 UTC
  • mto: This revision was merged to the branch mainline in revision 6215.
  • Revision ID: benoit.pierre@gmail.com-20111008190159-k5f8p2eq634r0tcn
Tweak test_text_ui_choose_return_values a little.

Make sure invalid shortcuts are ignored.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
                                      "n\n" # 1
167
167
                                      " \n" # default: 3
168
168
                                      " no \n" # 1
 
169
                                      "b\na\nd \n" # bad shortcuts, all ignored
169
170
                                      "yes with garbage\nY\n" # 0
170
171
                                      "not an answer\nno\n" # 1
171
172
                                      "info\nmore info\n" # 3