#NEWLINE# def test_read_many_graph6( self ) : #NEWLINE# #INDENT# data = 'DF{\nD`{\nDqK\nD~{\n' #NEWLINE# ( fd , fname ) = tempfile . mkstemp ( ) #NEWLINE# fh = open ( fname , 'w' ) #NEWLINE# b = fh . write ( data ) #NEWLINE# fh . close ( ) #NEWLINE# glist = nx . read_graph6_list ( fname ) #NEWLINE# assert_equal ( len ( glist ) , 4 ) #NEWLINE# for G in glist : #NEWLINE# #INDENT# assert_equal ( sorted ( G . nodes ( ) ) , [ 0 , 1 , 2 , 3 , 4 ] ) #NEWLINE# #UNINDENT# os . close ( fd ) #NEWLINE# os . unlink ( fname )