/breezy/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/trunk

« back to all changes in this revision

Viewing changes to breezy/tests/test_help.py

  • Committer: Jelmer Vernooij
  • Date: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
import re
35
35
 
36
36
 
 
37
class ErrorTests(tests.TestCase):
 
38
 
 
39
    def test_no_help_topic(self):
 
40
        error = help.NoHelpTopic("topic")
 
41
        self.assertEqualDiff("No help could be found for 'topic'. "
 
42
            "Please use 'brz help topics' to obtain a list of topics.",
 
43
            str(error))
 
44
 
 
45
 
37
46
class TestCommandHelp(tests.TestCase):
38
47
    """Tests for help on commands."""
39
48
 
660
669
        """Searching for an unknown topic should raise NoHelpTopic."""
661
670
        indices = help.HelpIndices()
662
671
        indices.search_path = []
663
 
        error = self.assertRaises(errors.NoHelpTopic, indices.search, 'foo')
 
672
        error = self.assertRaises(help.NoHelpTopic, indices.search, 'foo')
664
673
        self.assertEqual('foo', error.topic)
665
674
 
666
675
    def test_search_calls_get_topic(self):