~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

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')