'Test repeat function with a dictionary as a template.'

def _test_repeat_dict_template(self, templ=hot_kilo_tpl_empty):

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