'Test get_file function with non-string argument.'

def test_get_file_not_string(self):

    snippet = {'get_file': ['file:///tmp/foo.yaml']}
    tmpl = template.Template(hot_tpl_empty)
    stack = parser.Stack(utils.dummy_context(), 'param_id_test', tmpl)
    notStrErr = self.assertRaises(TypeError, self.resolve, snippet, tmpl, stack)
    self.assertEqual('Argument    to    "get_file"    must    be    a    string', six.text_type(notStrErr))
