'Reject this message.
The message will be discarded by the server.
Raises:
MessageStateError: If the message has already been
acknowledged/requeued/rejected.'

def reject(self, requeue=False):

    if (self.channel is None):
        raise self.MessageStateError(u'This    message    does    not    have    a    receiving    channel')
    if self.acknowledged:
        raise self.MessageStateError(u'Message    already    acknowledged    with    state:    {0._state}'.format(self))
    self.channel.basic_reject(self.delivery_tag, requeue=requeue)
    self._state = u'REJECTED'
