def handle_message(message, worker): Assert.not_null(message) Assert.not_null(message.id) Assert.not_null(message.body) Assert.equals('test', message.tag) worker.emit(message.body, parent=message) worker.ack(message)
def ack_handler(error): Assert.not_null(error) Test.complete()
def handle_message(message, worker): Assert.not_null(message) Assert.not_null(message.id) Assert.not_null(message.body) worker.fail(message)
def worker_start(error, worker): if error: Assert.true(False) else: Assert.not_null(worker)