~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Martin Pool
  • Date: 2006-06-20 07:55:43 UTC
  • mfrom: (1798 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1799.
  • Revision ID: mbp@sourcefrog.net-20060620075543-b10f6575d4a4fa32
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
        eq = self.assertEquals
16
16
        eq(parse_args(cmd_commit(), ['--help']),
17
17
           ([], {'help': True}))
18
 
        eq(parse_args(cmd_status(), ['--all']),
19
 
           ([], {'all': True}))
20
18
        eq(parse_args(cmd_commit(), ['--message=biter']),
21
19
           ([], {'message': 'biter'}))
22
20
        ## eq(parse_args(cmd_log(),  '-r 500'.split()),
46
44
 
47
45
    def test_unknown_short_opt(self):
48
46
        out, err = self.run_bzr_captured(['help', '-r'], retcode=3)
49
 
        self.assertContainsRe(err, r'unknown short option')
 
47
        self.assertContainsRe(err, r'unknown option')
50
48
 
51
49
 
52
50
#     >>> parse_args('log -r 500'.split())