/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 bzrlib/tests/blackbox/test_diff.py

  • Committer: Dmitry Vasiliev
  • Date: 2007-03-08 09:41:14 UTC
  • mto: (2325.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2326.
  • Revision ID: dima@hlabs.spb.ru-20070308094114-hqx0n9cu1w6z34ax
Added test for bzr diff --prefix illegal_value

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
''')
81
81
 
 
82
    def test_diff_illegal_prefix_value(self):
 
83
        # There was an error in error reporting for this option
 
84
        out, err = self.runbzr('diff --prefix old/', retcode=3)
 
85
        self.assertContainsRe(err,
 
86
            '--prefix expects two values separated by a colon')
 
87
 
82
88
    def test_diff_p1(self):
83
89
        """diff -p1 produces lkml-style diffs"""
84
90
        self.make_example_branch()