~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_help.py

  • Committer: James Westby
  • Date: 2007-05-14 20:42:47 UTC
  • mto: (2491.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2492.
  • Revision ID: jw+debian@jameswestby.net-20070514204247-mcxwep2on9g5p30w
Update with comments from review, thanks to John and Aaron.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""
20
20
 
21
21
 
 
22
import bzrlib
22
23
from bzrlib.tests.blackbox import ExternalBase
23
24
 
24
25
 
72
73
    def test_help_repositories(self):
73
74
        """Smoke test for 'bzr help repositories'"""
74
75
        out, err = self.runbzr('help repositories')
75
 
        self.assertContainsRe(out, 'repository')
76
 
        self.assertContainsRe(out, '--no-trees')
77
 
        self.assertContainsRe(out, 'init-repository')
 
76
        self.assertEqual(bzrlib.help_topics._repositories, out)
78
77
 
79
78
    def test_help_working_trees(self):
80
79
        """Smoke test for 'bzr help working-trees'"""
81
80
        out, err = self.runbzr('help working-trees')
82
 
        self.assertContainsRe(out, 'repository')
83
 
        self.assertContainsRe(out, 'remote')
84
 
        self.assertContainsRe(out, 'checkout')
85
 
        self.assertContainsRe(out, 'update')
86
 
        self.assertContainsRe(out, 'remove-tree')
 
81
        self.assertEqual(bzrlib.help_topics._working_trees, out)
87
82
 
88
83
    def test_help_commands(self):
89
84
        dash_help  = self.runbzr('--help commands')[0]