#NEWLINE# def test_xml_output( self ) : #NEWLINE# #INDENT# h = Hash ( self . md5 ) #NEWLINE# h2 = cybox . test . round_trip ( h ) #NEWLINE# self . assertEqual ( str ( h2 ) , EMPTY_MD5 ) #NEWLINE# s = h2 . to_xml ( ) #NEWLINE# self . assertTrue ( ( EMPTY_MD5 . encode ( 'utf-8' ) in s ) )