~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Shannon Weyrick
  • Date: 2011-11-04 13:40:04 UTC
  • mfrom: (6238 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6256.
  • Revision ID: weyrick@mozek.us-20111104134004-033t2wqhc3ydzm0a
Merge

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/n]: 
584
 
            <yes
 
583
            2>Really do it? ([y]es, [n]o): yes
 
584
            <y
585
585
            Do it!
586
586
            $ bzr test-confirm
587
 
            2>Really do it? [y/n]: 
588
 
            <no
 
587
            2>Really do it? ([y]es, [n]o): no
 
588
            <n
589
589
            ok, no
590
590
            """)
591
591
 
610
610
    def test_shelve(self):
611
611
        self.run_script("""
612
612
            $ bzr shelve -m 'shelve bar'
613
 
            # Shelve? [yNfq?]
614
 
            <y
615
 
            # Shelve 1 change(s)? [yNfq?]
 
613
            2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): yes
616
614
            <y
617
615
            2>Selected changes:
618
616
            2> M  file
 
617
            2>Shelve 1 change(s)? ([y]es, [N]o, [f]inish, [q]uit): yes
 
618
            <y
619
619
            2>Changes shelved with id "1".
620
620
            """,
621
 
                        # shelve uses \r that can't be represented in the
622
 
                        # script ?
623
621
                        null_output_matches_anything=True)
624
622
        self.run_script("""
625
623
            $ bzr shelve --list
630
628
        # We intentionally provide no input here to test EOF
631
629
        self.run_script("""
632
630
            $ bzr shelve -m 'shelve bar'
633
 
            # Shelve? [yNfq?]
634
 
            # Shelve 1 change(s)? [yNfq?]
 
631
            2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): 
635
632
            2>No changes to shelve.
636
633
            """,
637
 
                        # shelve uses \r that can't be represented in the
638
 
                        # script ?
639
634
                        null_output_matches_anything=True)
640
635
        self.run_script("""
641
636
            $ bzr st