/breezy/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/trunk

« back to all changes in this revision

Viewing changes to breezy/tests/test_options.py

Merge trunk.

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
 
            parse_args(cmd_commit(), ['--help']))
 
47
            ([], {'author': [], 'exclude': [], 'fixes': [], 'help': True,
 
48
                  'bugs': []}),
 
49
           parse_args(cmd_commit(), ['--help']))
49
50
        self.assertEqual(
50
 
            ([], {'author': [], 'exclude': [], 'fixes': [], 'message': 'biter'}),
51
 
            parse_args(cmd_commit(), ['--message=biter']))
 
51
            ([], {'author': [], 'exclude': [], 'fixes': [], 'message': 'biter',
 
52
                  'bugs': []}),
 
53
           parse_args(cmd_commit(), ['--message=biter']))
52
54
 
53
55
    def test_no_more_opts(self):
54
56
        """Terminated options"""
55
57
        self.assertEqual(
56
 
            (['-file-with-dashes'],
57
 
             {'author': [], 'exclude': [], 'fixes': []}),
 
58
            (['-file-with-dashes'], {
 
59
                'author': [], 'exclude': [], 'fixes': [], 'bugs': []}),
58
60
            parse_args(cmd_commit(), ['--', '-file-with-dashes']))
59
61
 
60
62
    def test_option_help(self):