def test_incorrect_outputs_cfn_incorrect_reference(self):
    tmpl = template_format.parse("\n        HeatTemplateFormatVersion: '2012-12-12'\n        Outputs:\n          Output:\n            Value:\n              Fn::GetAtt:\n                - Resource\n                - Foo\n        ")
    self.stack = stack.Stack(self.ctx, 'stack_with_incorrect_outputs', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('The specified reference "Resource" (in unknown) is incorrect.', str(ex))
def test_incorrect_outputs_cfn_incorrect_reference(self):
    tmpl = template_format.parse("\n        HeatTemplateFormatVersion: '2012-12-12'\n        Outputs:\n          Output:\n            Value:\n              Fn::GetAtt:\n                - Resource\n                - Foo\n        ")
    self.stack = stack.Stack(self.ctx, 'stack_with_incorrect_outputs', template.Template(tmpl))
    ex = self.assertRaises(exception.StackValidationFailed, self.stack.validate)
    self.assertIn('The specified reference "Resource" (in unknown) is incorrect.', str(ex))