#NEWLINE# def test_topological_sort_2( self ) : #NEWLINE# #INDENT# ' Does another basic topological sort work?\n        ' #NEWLINE# pairs = [ ( 1 , 2 ) , ( 1 , 3 ) , ( 2 , 4 ) , ( 3 , 4 ) , ( 5 , 6 ) , ( 4 , 5 ) ] #NEWLINE# ( result , has_cycles ) = topological_sort ( pairs ) #NEWLINE# self . assert_ ( ( not result ) ) #NEWLINE# self . assertEquals ( result , [ 1 , 2 , 3 , 4 , 5 , 6 ] )