def render_html(self, obj, context=None):
provided_context = context or Context()<EOL>context = RequestContext(mock_request())<EOL>context.update(provided_context)<EOL>context.push()<EOL>context[self._meta.context_varname] = obj<EOL>rendered = render_to_string(self._meta.template_name, context)<EOL>context.pop()<EOL>return rendered<EOL>
Generate the 'html' attribute of an oembed resource using a template.
Sort of a corollary to the parser's render_oembed method.  By default,
the current mapping will be passed in as the context.

OEmbed templates are stored in:

oembed/provider/[app_label]_[model].html

-- or --

oembed/provider/media_video.html