~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 13:18:53 UTC
  • mto: This revision was merged to the branch mainline in revision 6178.
  • Revision ID: v.ladeuil+lp@free.fr-20110927131853-bafk1zx2zyv5otu1
Follow the lead of other 'global' options which are not declared in option.py but handled in bzrlib.commands.run_bzr instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        # to cmd_commit, when they are meant to be about option parsing in
45
45
        # general.
46
46
        self.assertEqual(
47
 
           ([], {'author': [], 'exclude': [], 'fixes': [], 'help': True,
48
 
                 'override_config': []}),
 
47
           ([], {'author': [], 'exclude': [], 'fixes': [], 'help': True}),
49
48
           parse_args(cmd_commit(), ['--help']))
50
49
        self.assertEqual(
51
 
           ([], {'author': [], 'exclude': [], 'fixes': [], 'message': 'biter',
52
 
                 'override_config': []}),
 
50
           ([], {'author': [], 'exclude': [], 'fixes': [], 'message': 'biter'}),
53
51
           parse_args(cmd_commit(), ['--message=biter']))
54
52
 
55
53
    def test_no_more_opts(self):
56
54
        """Terminated options"""
57
55
        self.assertEqual(
58
 
            (['-file-with-dashes'], {'author': [], 'exclude': [], 'fixes': [],
59
 
                                     'override_config': []}),
 
56
            (['-file-with-dashes'], {'author': [], 'exclude': [], 'fixes': []}),
60
57
            parse_args(cmd_commit(), ['--', '-file-with-dashes']))
61
58
 
62
59
    def test_option_help(self):