~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

- help for global options

- test for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
219
219
        self.assertEquals(output, tmp_output)
220
220
 
221
221
    def test_option_help(self):
222
 
        """Options have help strings"""
 
222
        """Options have help strings."""
223
223
        out, err = self.run_bzr_captured(['commit', '--help'])
224
224
        self.assertContainsRe(out, r'--file.*file containing commit message')
225
225
 
 
226
    def test_option_help_global(self):
 
227
        """Global options have help strings."""
 
228
        out, err = self.run_bzr_captured(['help', 'status'])
 
229
        self.assertContainsRe(out, r'--show-ids.*show internal object')
 
230
 
226
231
    def example_branch(test):
227
232
        test.runbzr('init')
228
233
        file('hello', 'wt').write('foo')