~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/blackbox.py

- clean up handling of option objects
- add help for commit --file
- test for this

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from cStringIO import StringIO
28
28
import os
 
29
import re
29
30
import shutil
30
31
import sys
31
 
import os
32
32
 
33
33
from bzrlib.branch import Branch
34
34
from bzrlib.clone import copy_branch
218
218
        self.log(tmp_output)
219
219
        self.assertEquals(output, tmp_output)
220
220
 
 
221
    def test_option_help(self):
 
222
        """Options have help strings"""
 
223
        out, err = self.run_bzr_captured(['commit', '--help'])
 
224
        self.assertContainsRe(out, r'--file.*file containing commit message')
 
225
 
221
226
    def example_branch(test):
222
227
        test.runbzr('init')
223
228
        file('hello', 'wt').write('foo')