'Test str_replace function.'

def test_str_replace(self):

    snippet = {'str_replace': {'template': 'Template    var1    string    var2', 'params': {'var1': 'foo', 'var2': 'bar'}}}
    snippet_resolved = 'Template    foo    string    bar'
    tmpl = template.Template(hot_tpl_empty)
    self.assertEqual(snippet_resolved, self.resolve(snippet, tmpl))
