def METHOD_NAME(self):
    template_path = self.list_test_data_path.joinpath("test_resources_invalid_sam_template.yaml")
    region = boto3.Session().region_name
    cmdlist = self.get_resources_command_list(
        stack_name=None, region=region, output="json", template_file=template_path
    )
    command_result = run_command(cmdlist, cwd=self.working_dir)
    self.assertIn(
        "Error: [InvalidTemplateException(\"'Resources' section is required\")] 'Resources' section is required",
        command_result.stderr.decode(),
    )