'Test get_file function.'

def test_get_file(self):

    snippet = {'get_file': 'file:///tmp/foo.yaml'}
    snippet_resolved = 'foo    contents'
    tmpl = template.Template(hot_tpl_empty, files={'file:///tmp/foo.yaml': 'foo    contents'})
    stack = parser.Stack(utils.dummy_context(), 'param_id_test', tmpl)
    self.assertEqual(snippet_resolved, self.resolve(snippet, tmpl, stack))
