/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: Canonical.com Patch Queue Manager
  • Date: 2006-09-07 23:06:08 UTC
  • mfrom: (1991.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060907230608-4f18ec1bbe03eb8f
(robertc) Improve performance of bzr commit by eliminating the need for one inventory parse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
        error = errors.NoRepositoryPresent(dir)
32
32
        self.assertNotEqual(-1, str(error).find((dir.transport.clone('..').base)))
33
33
        self.assertEqual(-1, str(error).find((dir.transport.base)))
 
34
        
 
35
    def test_no_such_id(self):
 
36
        error = errors.NoSuchId("atree", "anid")
 
37
        self.assertEqualDiff("The file id anid is not present in the tree "
 
38
            "atree.",
 
39
            str(error))
34
40
 
35
41
    def test_up_to_date(self):
36
42
        error = errors.UpToDateFormat(bzrdir.BzrDirFormat4())