

def test16_DistributedActorFamily(self):
    self.startSystems(19)
    pattinson = ActorSystem().createActor(Pattinson)
    stewart = ActorSystem().ask(pattinson, 'girlfriend?', 2)
    ActorSystem().tell(stewart, 'Best Friend')
    ActorSystem().tell(pattinson, 'Best Friend')
    self.assertEqual(ActorSystem().ask(stewart, 'cat says', 2), 'Meow')
    self.assertEqual(ActorSystem().ask(pattinson, 'hello', 2), 'Greetings.')
    self.assertEqual(ActorSystem().ask(stewart, 'hello', 2), 'Greetings.')
    ActorSystem().tell(pattinson, 'Best Friend')
    self.assertEqual(ActorSystem().ask(stewart, 'Best Friend Says', 2), 'woof!')
    self.assertEqual(ActorSystem().ask(pattinson, 'Best Friend Says', 2), 'woof!')
    self.assertEqual(ActorSystem().ask(pattinson, 'Girlfriend Says', 2), 'She says hi')
    stewart.assertEqual(ActorSystem().ask(pattinson, 'Girlfriend Best Friend Says', 2), 'She says woof!')
    self.assertEqual(ActorSystem().ask(stewart, 'cat says', 2), 'Meow')

dataset/ETHPy150Open godaddy/Thespian/thespian/test/testMultipleActorSystems.py TestMultiProcessSystem.test16_DistributedActorFamily/VarMisuse@196/323 `self`->`stewart`