/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: Daniel Watkins
  • Date: 2007-08-23 18:02:53 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-20070823180253-5kmviq3cvtw6ttxn
Changed to remove need for escaping of quotes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    def test_no_such_id(self):
120
120
        error = errors.NoSuchId("atree", "anid")
121
121
        self.assertEqualDiff("The file id \"anid\" is not present in the tree "
122
 
            "\"atree\".",
 
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
 
        self.assertEqualDiff("The revision id anid is not present in the tree "
128
 
            "\"atree\".",
129
 
            str(error))
 
127
        self.assertEqualDiff("The revision id {anid} is not present in the"
 
128
                             " tree atree.", str(error))
130
129
        self.assertIsInstance(error, errors.NoSuchRevision)
131
130
 
132
131
    def test_not_write_locked(self):
353
352
        """Test the formatting of DuplicateRecordNameError."""
354
353
        e = errors.DuplicateRecordNameError(u"n\xe5me".encode('utf-8'))
355
354
        self.assertEqual(
356
 
            "Container has multiple records with the same name: \"n\xc3\xa5me\"",
 
355
            "Container has multiple records with the same name: n\xc3\xa5me",
357
356
            str(e))
358
357
 
359
358