~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Benoît Pierre
  • Date: 2011-10-05 22:15:03 UTC
  • mto: This revision was merged to the branch mainline in revision 6215.
  • Revision ID: benoit.pierre@gmail.com-20111005221503-mylhevt970ru5l5h
Fix script tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
580
580
        self.addCleanup(commands.builtin_command_registry.remove, 'test-confirm')
581
581
        self.run_script("""
582
582
            $ bzr test-confirm
583
 
            2>Really do it? ([y]es, [n]o): y
 
583
            2>Really do it? ([y]es, [n]o): yes
584
584
            <y
585
585
            Do it!
586
586
            $ bzr test-confirm
587
 
            2>Really do it? ([y]es, [n]o): n
 
587
            2>Really do it? ([y]es, [n]o): no
588
588
            <n
589
589
            ok, no
590
590
            """)
610
610
    def test_shelve(self):
611
611
        self.run_script("""
612
612
            $ bzr shelve -m 'shelve bar'
613
 
            2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): y
 
613
            2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): yes
614
614
            <y
615
615
            2>Selected changes:
616
616
            2> M  file
617
 
            2>Shelve 1 change(s)? ([y]es, [N]o, [f]inish, [q]uit): y
 
617
            2>Shelve 1 change(s)? ([y]es, [N]o, [f]inish, [q]uit): yes
618
618
            <y
619
619
            2>Changes shelved with id "1".
620
620
            """,