~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-08 03:10:33 UTC
  • mfrom: (2270.1.2 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070208031033-2ab8a0b14b6eaaba
(James Westby, Aaron Bentley) Improve documentation for checkouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        self.assertContainsRe(out, 'ancestor:')
52
52
        self.assertContainsRe(out, 'branch:')
53
53
 
 
54
    def test_help_checkouts(self):
 
55
        """Smoke test for 'bzr help checkouts'"""
 
56
        out, err = self.runbzr('help checkouts')
 
57
        self.assertContainsRe(out, 'checkout')
 
58
        self.assertContainsRe(out, 'lightweight')
 
59
 
54
60
    def test_help_commands(self):
55
61
        dash_help  = self.runbzr('--help commands')[0]
56
62
        commands   = self.runbzr('help commands')[0]
85
91
        for line in help.split('\n'):
86
92
            if '--long' in line:
87
93
                self.assertTrue('show help on all commands' in line)
 
94