#NEWLINE# def test_top_nodes( self ) : #NEWLINE# #INDENT# top_nodes = self . graph . get_top_nodes ( 'time' , 2 ) #NEWLINE# logging . info ( top_nodes ) #NEWLINE# summary = [ ( n . id , n . weights [ 'time' ] ) for n in top_nodes ] #NEWLINE# self . assertEqual ( summary , [ ( 3 , 12 ) , ( 2 , 1 ) ] )