~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-24 11:41:24 UTC
  • mfrom: (3449.1.2 unbreak-push-overwrite)
  • Revision ID: pqm@pqm.ubuntu.com-20080524114124-ubdyd5iqf7zxl2pn
Fix "bzr push --overwrite -r NNN". (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        self.assertEqualDiff('The prefix foo is in the help search path twice.',
53
53
            str(error))
54
54
 
55
 
    def test_ghost_revisions_have_no_revno(self):
56
 
        error = errors.GhostRevisionsHaveNoRevno('target', 'ghost_rev')
57
 
        self.assertEqualDiff("Could not determine revno for {target} because"
58
 
                             " its ancestry shows a ghost at {ghost_rev}",
59
 
                             str(error))
60
 
 
61
55
    def test_incompatibleAPI(self):
62
56
        error = errors.IncompatibleAPI("module", (1, 2, 3), (4, 5, 6), (7, 8, 9))
63
57
        self.assertEqualDiff(