def test_incorrect_outputs_incorrect_reference(self):
    tmpl = template_format.parse('\n        heat_template_version: 2013-05-23\n        outputs:\n          output:\n            value: { get_attr: [resource, 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_incorrect_reference(self):
    tmpl = template_format.parse('\n        heat_template_version: 2013-05-23\n        outputs:\n          output:\n            value: { get_attr: [resource, 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))