def METHOD_NAME(self):
    with TempDir() as d:
        template_file = path_join(d, 'invalid.yaml')
        ensure_parent_dir_exists(template_file)
        write_file(template_file, '> invalid')
        templates = ConfigTemplates([d])
        with pytest.raises(ValueError, match='^Unable to parse template `{}`'.format(re.escape(template_file))):
            templates.load('invalid')