~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2006-09-07 07:31:51 UTC
  • mto: (1991.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1992.
  • Revision ID: robertc@robertcollins.net-20060907073151-24ad889e938b4b05
WorkingTree has a new api ``unversion`` which allow the unversioning of
entries by their file id. (Robert Collins)

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())