~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testoptions.py

[merge] robertc's integration, updated tests to check for retcode=3

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        self.assertEquals(err, '')
43
43
        self.assertContainsRe(out, r'--file[ =]MSGFILE')
44
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
 
45
49
 
46
50
#     >>> parse_args('log -r 500'.split())
47
51
#     (['log'], {'revision': [<RevisionSpec_int 500>]})