'Test repeat function.'

def _test_repeat(self, templ=hot_kilo_tpl_empty):

    snippet = {'repeat': {'template': 'this    is    %var%', 'for_each': {'%var%': ['a', 'b', 'c']}}}
    snippet_resolved = ['this    is    a', 'this    is    b', 'this    is    c']
    tmpl = template.Template(templ)
    self.assertEqual(snippet_resolved, self.resolve(snippet, tmpl))
