#NEWLINE# def test_unicode( self ) : #NEWLINE# #INDENT# G = nx . Graph ( ) #NEWLINE# try : #NEWLINE# #INDENT# name1 = ( ( chr ( 2344 ) + chr ( 123 ) ) + chr ( 6543 ) ) #NEWLINE# name2 = ( ( chr ( 5543 ) + chr ( 1543 ) ) + chr ( 324 ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# name1 = ( ( unichr ( 2344 ) + unichr ( 123 ) ) + unichr ( 6543 ) ) #NEWLINE# name2 = ( ( unichr ( 5543 ) + unichr ( 1543 ) ) + unichr ( 324 ) ) #NEWLINE# #UNINDENT# G . add_edge ( name1 , 'Radiohead' , attr_dict = { #NEWLINE# #INDENT# name2 : 3 , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( fd , fname ) = tempfile . mkstemp ( ) #NEWLINE# nx . write_edgelist ( G , fname ) #NEWLINE# H = nx . read_edgelist ( fname ) #NEWLINE# assert_equal ( G . adj , H . adj ) #NEWLINE# os . close ( self ) #NEWLINE# os . unlink ( fname )