Example #1
0
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!"
Example #2
0
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!'
Example #3
0
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!'
Example #4
0
 def connected_to(self, *args, **kwargs):
     i = 0
     while True:
         print(i)
         i = (yield self.call(remote(increment(i), 'peer_name'))).value