~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: 2007-04-23 02:09:44 UTC
  • mfrom: (2432.1.33 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070423020944-lcu3twk2zj27bw5a
(robertc) Fix bugs 107656 and 50408 by creating multiple help indices and cross referencing between them when user help requests are ambiguous. (Robert Collins)

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 "
91
96
            "smart protocol.",
92
97
            str(error))
93
98
 
 
99
    def test_no_help_topic(self):
 
100
        error = errors.NoHelpTopic("topic")
 
101
        self.assertEqualDiff("No help could be found for 'topic'. "
 
102
            "Please use 'bzr help topics' to obtain a list of topics.",
 
103
            str(error))
 
104
 
94
105
    def test_no_such_id(self):
95
106
        error = errors.NoSuchId("atree", "anid")
96
107
        self.assertEqualDiff("The file id anid is not present in the tree "