class_docstr: Tests for the ChannelMessagesTable class.
docstr: Test that insert_channel_message calls the correct method in the client.
docstr_tok: ["Test","that","insert_channel_message","calls","the","correct","method","in","the","client","."]
code: def test_insert_channel_message_calls_correct_method_in_client(self):
      """
      Test that insert_channel_message calls the correct method in the client.
      """
  
      # patch the api handler to return the channel message data
      with patch.object(
          self.api_handler.connect(),
          "send_channel_message",
          return_value=None,
      ) as mock_send_channel_message:
          channel_messages_table = ChannelMessagesTable(
              self.api_handler
          )
  
          insert = ast.Insert(
              table="channel_messages",
              columns=[
                  Identifier("channelIdentity_teamId"),
                  Identifier("channelIdentity_channelId"),
                  Identifier("body_content"),
                  Identifier("subject"),
              ],
              values=[
                  (
                      "test_team_id",
                      "test_channel_id",
                      "test_message",
                      "test_subject",
                  )
              ],
          )
  
          channel_messages_table.insert(insert)
  
          # assert the api handler's send_channel_message method was called with the expected arguments
          mock_send_channel_message.assert_called_once_with(
              group_id="test_team_id",
              channel_id="test_channel_id",
              message="test_message",
              subject="test_subject",
          )
  
imports: import unittest
  from unittest.mock import Mock, patch
  from mindsdb_sql.parser import ast
  from mindsdb_sql.parser.ast import Constant, BinaryOperation
  from mindsdb_sql.parser.ast.select.star import Star
  from mindsdb_sql.parser.ast.select.identifier import Identifier
  from mindsdb.integrations.handlers.ms_teams_handler.ms_teams_handler import MSTeamsHandler
  from mindsdb.integrations.handlers.ms_teams_handler.settings import ms_teams_handler_config
  from mindsdb.integrations.handlers.ms_teams_handler.ms_graph_api_teams_client import MSGraphAPITeamsClient
  from mindsdb.integrations.handlers.ms_teams_handler.ms_teams_tables import ChatsTable, ChatMessagesTable, ChannelsTable, ChannelMessagesTable
label_desc: Use image node_id 7 for calling the TestChannelMessagesTable obj's underlying member method code with example usage: obj.test_insert_channel_message_calls_correct_method_in_client() without return types