def METHOD_NAME(self):
    """
    If a hook is installed, and on calling the object
    it does *not* return a message, then we assume that
    the message has been consumed, and should not be
    processed (`sent`) in the normal manner.
    """
    data = dict(a=1)
    hook = NoReturnDisplayHook()
    self.disp_pub.register_hook(hook)
    assert hook.call_count == 0
    assert self.session.send_count == 0
    self.disp_pub.publish(data)
    assert hook.call_count == 1
    assert self.session.send_count == 0