'Test resolution of get_resource occurrences in HOT template.'

def test_get_resource(self):

    hot_tpl = hot_tpl_generic_resource
    self.stack = parser.Stack(self.ctx, 'test_get_resource', template.Template(hot_tpl))
    self.stack.store()
    self.stack.create()
    self.assertEqual((parser.Stack.CREATE, parser.Stack.COMPLETE), self.stack.state)
    snippet = {'value': {'get_resource': 'resource1'}}
    self.assertEqual({'value': 'resource1'}, self.resolve(snippet))
