'Test str_replace function syntax.
Pass wrong syntax (array instead of dictionary) to function and
validate that we get a TypeError.'

def test_str_replace_syntax(self):

    snippet = {'str_replace': [{'template': 'Template    var1    string    var2'}, {'params': {'var1': 'foo', 'var2': 'bar'}}]}
    tmpl = template.Template(hot_tpl_empty)
    self.assertRaises(exception.StackValidationFailed, self.resolve, snippet, tmpl)
