42
42
# to cmd_commit, when they are meant to be about option parsing in
44
44
self.assertEqual(parse_args(cmd_commit(), ['--help']),
45
([], {'exclude': [], 'fixes': [], 'help': True}))
45
([], {'author': [], 'exclude': [], 'fixes': [], 'help': True}))
46
46
self.assertEqual(parse_args(cmd_commit(), ['--message=biter']),
47
([], {'exclude': [], 'fixes': [], 'message': 'biter'}))
47
([], {'author': [], 'exclude': [], 'fixes': [], 'message': 'biter'}))
49
49
def test_no_more_opts(self):
51
51
self.assertEqual(parse_args(cmd_commit(), ['--', '-file-with-dashes']),
52
(['-file-with-dashes'], {'author': [], 'exclude': [], 'fixes': []}))
54
54
def test_option_help(self):
55
55
"""Options have help strings."""