def test_incorrect_outputs_cfn_list_data(self):
    tmpl = template_format.parse("\n        HeatTemplateFormatVersion: '2012-12-12'\n        Resources:\n          AResource:\n            Type: ResourceWithPropsType\n            Properties:\n              Foo: abc\n        Outputs:\n          Resource_attr:\n            - Data is not what it seems\n        ")
    self.stack = stack.Stack(self.ctx, 'stack_with_correct_outputs', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('Found a list', str(ex))
    self.assertIn('Outputs.Resource_attr', str(ex))
def test_incorrect_outputs_cfn_list_data(self):
    tmpl = template_format.parse("\n        HeatTemplateFormatVersion: '2012-12-12'\n        Resources:\n          AResource:\n            Type: ResourceWithPropsType\n            Properties:\n              Foo: abc\n        Outputs:\n          Resource_attr:\n            - Data is not what it seems\n        ")
    self.stack = stack.Stack(self.ctx, 'stack_with_correct_outputs', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('Found a list', str(ex))
    self.assertIn('Outputs.Resource_attr', str(ex))