#NEWLINE# def test_render_string( self ) : #NEWLINE# #INDENT# '\n        Test XML rendering.\n        ' #NEWLINE# renderer = XMLRenderer ( ) #NEWLINE# content = renderer . render ( { #NEWLINE# #INDENT# 'field' : 'astring' , #NEWLINE# #UNINDENT# } , 'application/xml' ) #NEWLINE# self . assertXMLContains ( renderer , '<field>astring</field>' )