#NEWLINE# def assertXMLNotEqual( self , xml1 , xml2 , msg = None ) : #NEWLINE# #INDENT# '\n        Asserts that two XML snippets are not semantically equivalent.\n        Whitespace in most cases is ignored, and attribute ordering is not\n        significant. The passed-in arguments must be valid XML.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# result = compare_xml ( xml1 , xml2 ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# standardMsg = ( 'First or second argument is not valid XML\n%s' % e ) #NEWLINE# self . fail ( self . _formatMessage ( msg , standardMsg ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if result : #NEWLINE# #INDENT# standardMsg = ( '%s == %s' % ( safe_repr ( xml1 , True ) , safe_repr ( xml2 , True ) ) ) #NEWLINE# self . fail ( self . _formatMessage ( msg , standardMsg ) )