~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 00:14:15 UTC
  • mto: This revision was merged to the branch mainline in revision 2441.
  • Revision ID: robertc@robertcollins.net-20070420001415-iequi10ao2s4jtu4
Add an explicit error for missing help topics.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
            "smart protocol.",
92
92
            str(error))
93
93
 
 
94
    def test_no_help_topic(self):
 
95
        error = errors.NoHelpTopic("topic")
 
96
        self.assertEqualDiff("No help could be found for 'topic'. "
 
97
            "Please use 'bzr help topics' to obtain a list of topics.",
 
98
            str(error))
 
99
 
94
100
    def test_no_such_id(self):
95
101
        error = errors.NoSuchId("atree", "anid")
96
102
        self.assertEqualDiff("The file id anid is not present in the tree "