#NEWLINE# def test204_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 ( self , 'Generate' , 0.25 ) #NEWLINE# self . assertIsNotNone ( tgt1 ) #NEWLINE# self . assertIsNotNone ( tgt2 ) #NEWLINE# self . assertNotEqual ( gen1 , gen2 ) #NEWLINE# self . assertNotEqual ( gen1 , tgt1 ) #NEWLINE# self . assertNotEqual ( gen1 , tgt2 ) #NEWLINE# self . assertNotEqual ( gen2 , tgt1 ) #NEWLINE# self . assertNotEqual ( gen2 , tgt2 ) #NEWLINE# self . assertNotEqual ( tgt1 , tgt2 ) #NEWLINE# self . assertEqual ( system . ask ( tgt1 , 'hello' , 0.25 ) , ( 'TGT %s got hello' % tgt1 ) ) #NEWLINE# self . assertEqual ( system . ask ( gen1 , 'hello' , 0.25 ) , ( 'TGT %s got hello' % tgt1 ) ) #NEWLINE# self . assertEqual ( system . ask ( tgt2 , 'howdy' , 0.25 ) , ( 'TGT %s got howdy' % tgt2 ) ) #NEWLINE# self . assertEqual ( system . ask ( gen2 , 'howdy' , 0.25 ) , ( 'TGT %s got howdy' % tgt2 ) )