def test_return_value(app, watcher): event = Event.create("foo") event.notify = True remote_event = remote(event, "child") remote_event.notify = True value = app.fire(remote_event) assert watcher.wait("remote_value_changed") assert value.value == "Hello World!"
def test_return_value(app, watcher): event = Event.create('foo') event.notify = True remote_event = remote(event, 'child') remote_event.notify = True value = app.fire(remote_event) assert watcher.wait('remote_value_changed') assert value.value == 'Hello World!'
def connected_to(self, *args, **kwargs): i = 0 while True: print(i) i = (yield self.call(remote(increment(i), 'peer_name'))).value