def mock_render_to_string(template_name, context):
 return str((template_name, sorted(context.iteritems())))

def mock_render_to_string ( template_name , context ) : return str ( ( template_name , sorted ( context . iteritems ( ) ) ) )
return a string that encodes template_name and context .