def METHOD_NAME(self, string, context=None, request_context=True):
    if context is None:
        context = {}
    # Add a request to the template, to simulate a RequestContext
    if request_context:
        site = Site.objects.get(is_default_site=True)
        request = self.client.get("/test/", HTTP_HOST=site.hostname)
        context["request"] = request
    template = self.engine.from_string(string)
    return template.METHOD_NAME(context)