~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-11 02:32:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2599.
  • Revision ID: mbp@sourcefrog.net-20070711023238-3t8dcgltds9566ke
Fix up tests for option help cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    def test_option_help(self):
56
56
        """Options have help strings."""
57
57
        out, err = self.run_bzr('commit --help')
58
 
        self.assertContainsRe(out, r'--file(.|\n)*file containing commit'
59
 
                                   ' message')
 
58
        self.assertContainsRe(out,
 
59
                r'--file(.|\n)*Take commit message from this file\.')
60
60
        self.assertContainsRe(out, r'-h.*--help')
61
61
 
62
62
    def test_option_help_global(self):
63
63
        """Global options have help strings."""
64
64
        out, err = self.run_bzr('help status')
65
 
        self.assertContainsRe(out, r'--show-ids.*show internal object')
 
65
        self.assertContainsRe(out, r'--show-ids.*Show internal object.')
66
66
 
67
67
    def test_option_arg_help(self):
68
68
        """Help message shows option arguments."""