def _get_message(): return nsq.Message("1234", "{}", 1234, 0)
def _get_message(conn): msg = nsq.Message("1234", "{}", 1234, 0) msg.on('finish', conn._on_message_finish) msg.on('requeue', conn._on_message_requeue) return msg
def _get_test_message(): msg = nsq.Message("1234", "{}", 1234, 0) return msg