/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

(jam) Implement Graph.find_distance_to_null(),
        use it to speed up finding the revno when we are setting a branch to
        a random revision_id

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
 
55
61
    def test_incompatibleAPI(self):
56
62
        error = errors.IncompatibleAPI("module", (1, 2, 3), (4, 5, 6), (7, 8, 9))
57
63
        self.assertEqualDiff(