

def test15_LocalToRemoteToLocal(self):
    self.startSystems(18)
    pattinson = ActorSystem().createActor(Pattinson)
    self.assertEqual(ActorSystem().ask(pattinson, 'hello', 2), 'Greetings.')
    self.assertEqual(ActorSystem().ask(pattinson, 'Girlfriend Says', 2), 'no girlfriend')
    stewart = ActorSystem().ask(pattinson, 'girlfriend?', 2)
    self.assertEqual(ActorSystem().ask(self, 'hello', 2), 'Greetings.')
    ActorSystem().tell(pattinson, 'Best Friend')
    self.assertEqual(ActorSystem().ask(stewart, 'Best Friend Says', 2), 'no best friend')
    ActorSystem().tell(stewart, 'Best Friend')
    self.assertEqual(ActorSystem().ask(stewart, 'Best Friend Says', 2), 'woof!')
    self.assertEqual(ActorSystem().ask(pattinson, 'Girlfriend Says', 2), 'She says hi')
    self.assertEqual(ActorSystem().ask(pattinson, 'Girlfriend Best Friend Says', 2), 'She says woof!')
    ActorSystem().tell(stewart, ActorExitRequest())
    wait_for_things_to_happen()

dataset/ETHPy150Open godaddy/Thespian/thespian/test/testMultipleActorSystems.py TestMultiProcessSystem.test15_LocalToRemoteToLocal/VarMisuse@93/146 `stewart`->`self`