#NEWLINE# def test201_GeneratorActors( self ) : #NEWLINE# #INDENT# system = ActorSystem ( ) #NEWLINE# gen1 = system . createActor ( Generator ) #NEWLINE# gen2 = system . createActor ( Generator ) #NEWLINE# self . assertNotEqual ( gen1 , gen2 ) #NEWLINE# self . assertEqual ( system . ask ( gen1 , 'hello' , 0.25 ) , ( 'GEN %s got hello' % gen1 ) ) #NEWLINE# self . assertEqual ( system . ask ( gen2 , 'hello' , 0.25 ) , ( 'GEN %s got hello' % gen2 ) ) #NEWLINE# self . assertEqual ( system . ask ( gen1 , 'bye' , 0.25 ) , ( 'GEN %s got bye' % gen1 ) ) #NEWLINE# self . assertEqual ( system . ask ( gen2 , "c'ya" , 0.25 ) , ( "GEN %s got c'ya" % system ) )