def test_parse_cli_conflict(self): try: args = cli.parse_cli(["-j", "-J"]) assert False, "Parsing conflicting options should have failed" except: pass
def test_parse_cli_defaults(self): args = cli.parse_cli([]) assert callable(args.command)
def test_parse_cli_single_param(self): for p in ['j', 'J', 'p', 'P', '-version', 'd', 'u']: args = cli.parse_cli(['-' + p]) assert callable(args.command)