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