'Test repeat function with get_param function as an argument.'

def test_repeat_get_param(self):

    hot_tpl = template_format.parse("\n                                heat_template_version:    2015-04-30\n                                parameters:\n                                        param:\n                                                type:    comma_delimited_list\n                                                default:    'a,b,c'\n                                ")
    snippet = {'repeat': {'template': 'this    is    var%', 'for_each': {'var%': {'get_param': 'param'}}}}
    snippet_resolved = ['this    is    a', 'this    is    b', 'this    is    c']
    tmpl = template.Template(hot_tpl)
    stack = parser.Stack(utils.dummy_context(), 'test_stack', tmpl)
    self.assertEqual(snippet_resolved, self.resolve(snippet, tmpl, stack))
