~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

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