parameters: (self, discussion_id, message_id)
return_statement: return str(msg.discussion_id) == str(discussion_id)
docstring: Search if a message belongs to a discussion
docstring_summary: Search if a message belongs to a discussion
docstring_tokens: Search if a message belongs to a discussion
function: def message_belongs_to(self, discussion_id, message_id):
          """Search if a message belongs to a discussion"""
  
          msg = IndexedMessage.get(message_id, using=self.proxy, index=self.index)
          return str(msg.discussion_id) == str(discussion_id)
function_tokens: def message_belongs_to ( self , discussion_id , message_id ) : msg = IndexedMessage . get ( message_id , using = self . proxy , index = self . index ) return str ( msg . discussion_id ) == str ( discussion_id )