#NEWLINE# def test_adjlist_multidigraph( self ) : #NEWLINE# #INDENT# G = self . XDG #NEWLINE# ( fd , fname ) = tempfile . mkstemp ( ) #NEWLINE# nx . write_adjlist ( G , fname ) #NEWLINE# H = nx . read_adjlist ( fname , nodetype = int , create_using = nx . MultiDiGraph ( ) ) #NEWLINE# H2 = nx . read_adjlist ( fname , nodetype = int , create_using = nx . MultiDiGraph ( ) ) #NEWLINE# assert_not_equal ( H , H2 ) #NEWLINE# assert_equal ( sorted ( H . nodes ( ) ) , sorted ( G . nodes ( ) ) ) #NEWLINE# assert_equal ( sorted ( H . edges ( ) ) , sorted ( G . edges ( ) ) ) #NEWLINE# os . close ( fd ) #NEWLINE# os . unlink ( fname )