#NEWLINE# def test_detect_cycle_indirect( self ) : #NEWLINE# #INDENT# c = self . make_target ( ':c' ) #NEWLINE# b = self . make_target ( ':b' , dependencies = [ c ] ) #NEWLINE# a = self . make_target ( ':a' , dependencies = [ c , b ] ) #NEWLINE# sort_targets ( [ a ] ) #NEWLINE# self . build_graph . inject_dependency ( c . address , a . address ) #NEWLINE# with self . assertRaises ( CycleException ) : #NEWLINE# #INDENT# sort_targets ( [ a ] )