~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testoptions.py

Exclude more files from dumb-rsync upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        """Options have help strings."""
30
30
        out, err = self.run_bzr_captured(['commit', '--help'])
31
31
        self.assertContainsRe(out, r'--file.*file containing commit message')
 
32
        self.assertContainsRe(out, r'--help.*-h')
32
33
 
33
34
    def test_option_help_global(self):
34
35
        """Global options have help strings."""
41
42
        self.assertEquals(err, '')
42
43
        self.assertContainsRe(out, r'--file[ =]MSGFILE')
43
44
 
 
45
    def test_unknown_short_opt(self):
 
46
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
 
47
        self.assertContainsRe(err, r'unknown short option')
 
48
 
44
49
 
45
50
#     >>> parse_args('log -r 500'.split())
46
51
#     (['log'], {'revision': [<RevisionSpec_int 500>]})