#NEWLINE# def test_write_edgelist_1( self ) : #NEWLINE# #INDENT# fh = io . BytesIO ( ) #NEWLINE# G = nx . Graph ( ) #NEWLINE# G . add_edges_from ( [ ( 1 , 2 ) , ( 2 , 3 ) ] ) #NEWLINE# nx . write_edgelist ( self , fh , data = False ) #NEWLINE# fh . seek ( 0 ) #NEWLINE# assert_equal ( fh . read ( ) , b'1 2\n2 3\n' )