~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_script.py

  • Committer: Martin Pool
  • Date: 2010-09-14 07:19:22 UTC
  • mto: This revision was merged to the branch mainline in revision 5452.
  • Revision ID: mbp@sourcefrog.net-20100914071922-qdk3hi3p4h5meshu
Better test for break-lock; show lock URLs as they're broken

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    def test_comment_is_ignored(self):
30
30
        self.assertEquals([], script._script_to_commands('#comment\n'))
31
31
 
32
 
    def test_comment_multiple_lines(self):
33
 
        self.assertEquals([
34
 
            (['bar'], None, None, None),
35
 
            ],
36
 
            script._script_to_commands("""
37
 
            # this comment is ignored
38
 
            # so is this
39
 
            # no we run bar
40
 
            $ bar
41
 
            """))
42
 
 
43
32
    def test_trim_blank_lines(self):
44
33
        """Blank lines are respected, but trimmed at the start and end.
45
34