#NEWLINE# def test205_GeneratorCreateTargets( self ) : #NEWLINE# #INDENT# system = ActorSystem ( ) #NEWLINE# gen1 = system . createActor ( Generator ) #NEWLINE# gen2 = system . createActor ( Generator ) #NEWLINE# tgt1 = system . ask ( gen1 , 'Generate' , 0.25 ) #NEWLINE# tgt2 = system . ask ( gen2 , 'Generate' , 0.25 ) #NEWLINE# msg = RoutedMsg ( [ gen1 , tgt2 , gen2 , tgt2 , tgt1 , gen1 ] [ : : ( - 1 ) ] ) #NEWLINE# self . assertEqual ( system . ask ( tgt1 , msg , 0.25 ) . response , [ ( tgt1 , 'passed along with 5 left' ) , ( gen1 , 'passed along with 4 left' ) , ( tgt2 , 'passed along with 3 left' ) , ( gen2 , 'passed along with 2 left' ) , ( tgt2 , 'passed along with 1 left' ) , ( tgt1 , 'passed along with 0 left' ) , ( gen1 , 'Ended chain' ) ] )