~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Martin Pool
  • Date: 2008-02-11 11:24:11 UTC
  • mto: (3221.6.1 1.2)
  • mto: This revision was merged to the branch mainline in revision 3222.
  • Revision ID: mbp@sourcefrog.net-20080211112411-j07kfvsserr68aha
Review cleanups for CorruptDirstate: use the path everywhere rather than the object, and use more standard phrasing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2008 Canonical Ltd
2
2
#   Authors: Robert Collins <robert.collins@canonical.com>
3
3
#            and others
4
4
#
31
31
 
32
32
    def test_corrupt_dirstate(self):
33
33
        error = errors.CorruptDirstate('path/to/dirstate', 'the reason why')
34
 
        self.assertEqualDiff("There is an inconsistency with your dirstate file at path"
35
 
                             " path/to/dirstate.\n"
36
 
                             "Error: the reason why", str(error))
 
34
        self.assertEqualDiff(
 
35
            "Inconsistency in dirstate file path/to/dirstate.\n"
 
36
            "Error: the reason why",
 
37
            str(error))
37
38
 
38
39
    def test_disabled_method(self):
39
40
        error = errors.DisabledMethod("class name")