'Test str_replace_vstrict function with empty params.
Raise ValueError when any of the params are None or empty.'

def test_str_replace_vstrict_empty_param_not_ok(self):

    snippet = {'str_replace_vstrict': {'template': 'Template    var1    string    var2', 'params': {'var1': 'foo', 'var2': ''}}}
    tmpl = template.Template(hot_pike_tpl_empty)
    for val in (None, '', {}, []):
        snippet['str_replace_vstrict']['params']['var2'] = val
        ex = self.assertRaises(ValueError, self.resolve, snippet, tmpl)
        self.assertIn('str_replace_vstrict    has    an    undefined    or    empty    value    for    param    var2', six.text_type(ex))
