'Test str_replace_strict function missing param(s) raises error.'

def test_str_replace_strict_missing_param(self):

    snippet = {'str_replace_strict': {'template': 'Template    var1    string    var2', 'params': {'var1': 'foo', 'var2': 'bar', 'var3': 'zed'}}}
    tmpl = template.Template(hot_ocata_tpl_empty)
    ex = self.assertRaises(ValueError, self.resolve, snippet, tmpl)
    self.assertEqual('The    following    params    were    not    found    in    the    template:    var3', six.text_type(ex))
    snippet = {'str_replace_strict': {'template': 'Template    var1    string    var2', 'params': {'var1': 'foo', 'var2': 'bar', 'var0': 'zed'}}}
    ex = self.assertRaises(ValueError, self.resolve, snippet, tmpl)
    self.assertEqual('The    following    params    were    not    found    in    the    template:    var0', six.text_type(ex))
    snippet = {'str_replace_vstrict': {'template': 'Template    var1    string    var2', 'params': {'var1': 'foo', 'var2': 'bar', 'var0': 'zed', 'var': 'z', 'longvarname': 'q'}}}
    tmpl = template.Template(hot_pike_tpl_empty)
    ex = self.assertRaises(ValueError, self.resolve, snippet, tmpl)
    self.assertEqual('The    following    params    were    not    found    in    the    template:    longvarname,var0,var', six.text_type(ex))
