def test_command_valid_args_when_missing(): for command in test_commands_without_args: set_sysargv(command) c = Command() assert c.validates_includes_args() == False
def test_command_valid_args(): for command in test_commands_with_args: set_sysargv(command) c = Command() assert c.validates_includes_args() == True