/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_script.py

  • Committer: Breezy landing bot
  • Author(s): Martin
  • Date: 2018-11-20 23:50:57 UTC
  • mfrom: (7195.5.2 lint_W1_W2_W3)
  • Revision ID: breezy.the.bot@gmail.com-20181120235057-rcl0xb6zs0gspupb
Fix remaining whitespace lint in codebase

Merged from https://code.launchpad.net/~gz/brz/lint_W1_W2_W3/+merge/358968

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    def test_trim_blank_lines(self):
45
45
        """Blank lines are respected, but trimmed at the start and end.
46
46
 
47
 
        Python triple-quoted syntax is going to give stubby/empty blank lines 
48
 
        right at the start and the end.  These are cut off so that callers don't 
 
47
        Python triple-quoted syntax is going to give stubby/empty blank lines
 
48
        right at the start and the end.  These are cut off so that callers don't
49
49
        need special syntax to avoid them.
50
50
 
51
51
        However we do want to be able to match commands that emit blank lines.
186
186
            """)
187
187
 
188
188
    def test_null_output_matches_option(self):
189
 
        """If you want null output to be a wild card, you can pass 
 
189
        """If you want null output to be a wild card, you can pass
190
190
        null_output_matches_anything to run_script"""
191
191
        self.run_script(
192
192
            """
628
628
 
629
629
    def test_dont_shelve(self):
630
630
        # We intentionally provide no input here to test EOF
631
 
        self.run_script("""
632
 
            $ brz shelve -m 'shelve bar'
633
 
            2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): 
634
 
            2>No changes to shelve.
635
 
            """,
636
 
                        null_output_matches_anything=True)
 
631
        self.run_script((
 
632
            "$ brz shelve -m 'shelve bar'\n"
 
633
            "2>Shelve? ([y]es, [N]o, [f]inish, [q]uit): \n"
 
634
            "2>No changes to shelve.\n"
 
635
            ), null_output_matches_anything=True)
637
636
        self.run_script("""
638
637
            $ brz st
639
638
            modified: