'Test get_file function with no matching key in files section.'

def test_get_file_missing_files(self):

    snippet = {'get_file': 'file:///tmp/foo.yaml'}
    tmpl = template.Template(hot_tpl_empty, files={'file:///tmp/bar.yaml': 'bar    contents'})
    stack = parser.Stack(utils.dummy_context(), 'param_id_test', tmpl)
    missingErr = self.assertRaises(ValueError, self.resolve, snippet, tmpl, stack)
    self.assertEqual('No    content    found    in    the    "files"    section    for    get_file    path:    file:///tmp/foo.yaml', six.text_type(missingErr))
