'Test str_replace function substitution order.'

def test_str_replace_order(self):

    snippet = {'str_replace': {'template': '1234567890', 'params': {'1': 'a', '12': 'b', '123': 'c', '1234': 'd', '12345': 'e', '123456': 'f', '1234567': 'g'}}}
    tmpl = template.Template(hot_tpl_empty)
    self.assertEqual('g890', self.resolve(snippet, tmpl))
