'Test resolution of get_attr occurrences in HOT template.'

def test_get_attr_invalid(self):

    hot_tpl = hot_tpl_generic_resource
    self.stack = parser.Stack(self.ctx, 'test_get_attr', template.Template(hot_tpl))
    self.stack.store()
    self.stack.create()
    self.assertEqual((parser.Stack.CREATE, parser.Stack.COMPLETE), self.stack.state)
    self.assertRaises(exception.InvalidTemplateAttribute, self.resolve, {'Value': {'get_attr': ['resource1', 'NotThere']}})
