def render_to_string_test(template_name, django_context):
 from django.test import signals
 signals.template_rendered.send(sender=None, template=template_name, context=django_context)
 return render_to_string_normal(template_name, django_context)

def render_to_string_test ( template_name , django_context ) : from django . test import signals signals . template_rendered . send ( sender = None , template = template_name , context = django_context ) return render_to_string_normal ( template_name , django_context )
in tests .