~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-02-02 00:16:10 UTC
  • mto: (2270.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2273.
  • Revision ID: jw+debian@jameswestby.net-20070202001610-rgff0g0w3my07ymj
Add a help topic describing checkouts and how they work.

It's meant to be an overview of what they are and what they might be useful
for, as well as a pointer to the commands that you need to manipulate them.

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