def __eq__(self, other):
        """
        Check if the properties and bodies of this Message and another
        Message are the same.

        Received messages may contain a 'delivery_info' attribute,
        which isn't compared.

        """
        return super(Message, self).__eq__(other) \
        and hasattr(other, 'body') and (self.body == other.body)
def __eq__ ( self , other ) : return super ( Message , self ) . __eq__ ( other ) and hasattr ( other , 'body' ) and ( self . body == other . body )
Check if the properties and bodies of this Message and another
        Message are the same.

        Received messages may contain a 'delivery_info' attribute,
        which isn't compared.