/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/test_errors.py

  • Committer: jameinel
  • Date: 2008-01-30 20:16:00 UTC
  • mto: (3221.1.1 prepare-1.2rc1)
  • mto: This revision was merged to the branch mainline in revision 3222.
  • Revision ID: jameinel@samus-20080130201600-rhtzr6r55k604rbb
Add a test that _iter_changes raises a clearer error when we encounter an invalid rename.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
class TestErrors(TestCaseWithTransport):
30
30
 
 
31
    def test_corrupt_dirstate(self):
 
32
        error = errors.CorruptDirstate('path/to/dirstate', 'the reason why')
 
33
        self.assertEqualDiff("There is an inconsistency with your dirstate file at path"
 
34
                             " path/to/dirstate.\n"
 
35
                             "Error: the reason why", str(error))
 
36
 
31
37
    def test_disabled_method(self):
32
38
        error = errors.DisabledMethod("class name")
33
39
        self.assertEqualDiff(