~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Daniel Watkins
  • Date: 2007-08-23 14:10:48 UTC
  • mto: (2759.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2760.
  • Revision ID: d.m.watkins@warwick.ac.uk-20070823141048-hlyyibw24f34voen
Updated tests to reflect new error text.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    def test_knit_header_error(self):
85
85
        error = errors.KnitHeaderError('line foo\n', 'path/to/file')
86
86
        self.assertEqual("Knit header error: 'line foo\\n' unexpected"
87
 
                         " for file path/to/file", str(error))
 
87
                         " for file \"path/to/file\".", str(error))
88
88
 
89
89
    def test_knit_index_unknown_method(self):
90
90
        error = errors.KnitIndexUnknownMethod('http://host/foo.kndx',
118
118
 
119
119
    def test_no_such_id(self):
120
120
        error = errors.NoSuchId("atree", "anid")
121
 
        self.assertEqualDiff("The file id anid is not present in the tree "
122
 
            "atree.",
 
121
        self.assertEqualDiff("The file id \"anid\" is not present in the tree "
 
122
            "\"atree\".",
123
123
            str(error))
124
124
 
125
125
    def test_no_such_revision_in_tree(self):
126
126
        error = errors.NoSuchRevisionInTree("atree", "anid")
127
127
        self.assertEqualDiff("The revision id anid is not present in the tree "
128
 
            "atree.",
 
128
            "\"atree\".",
129
129
            str(error))
130
130
        self.assertIsInstance(error, errors.NoSuchRevision)
131
131