~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-27 14:28:26 UTC
  • mfrom: (6171.2.1 860424-hidden-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110927142826-blyyexoowqf509er
(vila) Clarify how a global option can be hidden by a command ('log' hides
 'message') (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        out, err = self.run_bzr('help status')
66
66
        self.assertContainsRe(out, r'--show-ids.*Show internal object.')
67
67
 
 
68
    def test_option_help_global_hidden(self):
 
69
        """Hidden global options have no help strings."""
 
70
        out, err = self.run_bzr('help log')
 
71
        self.assertNotContainsRe(out, r'--message')
 
72
 
68
73
    def test_option_arg_help(self):
69
74
        """Help message shows option arguments."""
70
75
        out, err = self.run_bzr('help commit')