class_docstr: Tests for the ChatMessagesTable class.
docstr: Test that send_chat_message sends a chat message.
docstr_tok: ["Test","that","send_chat_message","sends","a","chat","message","."]
code: def test_insert_chat_message_calls_correct_method_in_client(self):
      """
      Test that send_chat_message sends a chat message.
      """
  
      # patch the api handler to return the chat message data
      with patch.object(
          self.api_handler.connect(),
          "send_chat_message",
          return_value=None,
      ) as mock_send_chat_message:
          chat_messages_table = ChatMessagesTable(self.api_handler)
  
          insert = ast.Insert(
              table="chat_messages",
              columns=[
                  Identifier("chatId"),
                  Identifier("body_content"),
                  Identifier("subject"),
              ],
              values=[("test_chat_id", "test_message", "test_subject")],
          )
  
          chat_messages_table.insert(insert)
  
          # assert the api handler's send_chat_message method was called with the expected arguments
          mock_send_chat_message.assert_called_once_with(
              chat_id="test_chat_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 9 for calling the TestChatMessagesTable obj's underlying member method code with example usage: obj.test_insert_chat_message_calls_correct_method_in_client() without return types