def sender(scheduler): e = peachbox.scheduler.Event('e1') status = scheduler.get_event_status(e.name()) status.update({'status':'success'}) e.set_status(status) scheduler.publish(e)
def sender(scheduler): e = peachbox.scheduler.Event('e1') status = scheduler.get_event_status(e.name()) status.update({'status': 'success'}) e.set_status(status) scheduler.publish(e)
def consumer(scheduler): self.assertEqual(scheduler.get_event_status('e1'), {'k':'process_v'})
def consumer(scheduler): self.assertEqual(scheduler.get_event_status('e1'), {'k': 'process_v'})