~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Martin Pool
  • Date: 2007-07-10 10:33:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2599.
  • Revision ID: mbp@sourcefrog.net-20070710103345-hwfpnzxcx1mfv31x
Also check that option help ends in a period, and fix those that don't

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
 
299
299
    def test_option_grammar(self):
300
300
        msgs = []
301
 
        option_re = re.compile(r'^[A-Z]')
 
301
        # Option help should be written in sentence form, and have a final
 
302
        # period and be all on a single line, because the display code will
 
303
        # wrap it.
 
304
        option_re = re.compile(r'^[A-Z][^\n]+\.$')
302
305
        for scope, option in self.get_all_options():
303
306
            if not option.help:
304
307
                # TODO: Also complain about options that have no help message?