def test_incorrect_outputs_hot_get_attr(self):
    tmpl = {'heat_template_version': '2013-05-23', 'resources': {'AResource': {'type': 'ResourceWithPropsType', 'properties': {'Foo': 'abc'}}}, 'outputs': {'resource_attr': {'value': {'get_attr': ['AResource', 'Bar']}}}}
    self.stack = stack.Stack(self.ctx, 'stack_with_correct_outputs', template.Template(tmpl))
    self.assertRaisesRegex(exception.StackValidationFailed, 'outputs.resource_attr.value.get_attr: The Referenced Attribute \\(AResource Bar\\) is incorrect.', self.stack.validate)
def test_incorrect_outputs_hot_get_attr(self):
    tmpl = {'heat_template_version': '2013-05-23', 'resources': {'AResource': {'type': 'ResourceWithPropsType', 'properties': {'Foo': 'abc'}}}, 'outputs': {'resource_attr': {'value': {'get_attr': ['AResource', 'Bar']}}}}
    self.stack = stack.Stack(self.ctx, 'stack_with_correct_outputs', template.Template(tmpl))
    self.assertRaisesRegex(exception.StackValidationFailed, 'outputs.resource_attr.value.get_attr: The Referenced Attribute \\(AResource Bar\\) is incorrect.', self.stack.validate)