~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2007-04-20 03:32:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420033220-bwu4sb8t1a6vfamw
Ensure each HelpIndex has a unique prefix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        self.assertEqualDiff('File id {a_file_id} already exists in inventory'
41
41
                             ' as foo', str(error))
42
42
 
 
43
    def test_duplicate_help_prefix(self):
 
44
        error = errors.DuplicateHelpPrefix('foo')
 
45
        self.assertEqualDiff('The prefix foo is in the help search path twice.',
 
46
            str(error))
 
47
 
43
48
    def test_inventory_modified(self):
44
49
        error = errors.InventoryModified("a tree to be repred")
45
50
        self.assertEqualDiff("The current inventory for the tree 'a tree to "