def test_command_valid_defs_when_missing(): for command in test_commands_without_defs: set_sysargv(command) c = Command() assert c.validates_includes_definitions() == False
def test_command_valid_defs(): for command in test_commands_with_defs: set_sysargv(command) c = Command() assert c.validates_includes_definitions() == True