#NEWLINE# @ unittest . skipUnless ( etree , 'defusedxml not installed' ) #NEWLINE# def test_render_and_parse_complex_data( self ) : #NEWLINE# #INDENT# '\n        Test XML rendering.\n        ' #NEWLINE# renderer = XMLRenderer ( ) #NEWLINE# content = StringIO ( renderer . render ( self . _complex_data , 'application/xml' ) ) #NEWLINE# parser = XMLParser ( ) #NEWLINE# complex_data_out = parser . parse ( renderer ) #NEWLINE# error_msg = ( 'complex data differs!IN:\n %s \n\n OUT:\n %s' % ( repr ( self . _complex_data ) , repr ( complex_data_out ) ) ) #NEWLINE# self . assertEqual ( self . _complex_data , complex_data_out , error_msg )