class_docstr: Test class for Teams
class_docstr_tok: ["Test","class","for","Teams"]
docstr: TeamsOutput - Dispatch Success
docstr_tok: ["TeamsOutput","-","Dispatch","Success"]
code: def test_dispatch_success(self, message_mock, log_mock):
      """TeamsOutput - Dispatch Success"""
  
      message_mock.return_value = Mock(send=Mock(return_value="Worked"))
  
      assert_true(self._dispatcher.dispatch(get_alert(), self.OUTPUT))
  
      # Tests
      log_mock.assert_called()
      log_mock.assert_called_with(
          "Successfully sent alert to %s:%s",
          self.SERVICE,
          self.DESCRIPTOR,
      )
  
imports: import pymsteams
  from pymsteams import TeamsWebhookException
  from mock import MagicMock, Mock, patch, call
  from nose.tools import assert_equal, assert_false, assert_true
  from streamalert.alert_processor.helpers import compose_alert
  from streamalert.alert_processor.outputs.teams import TeamsOutput
  from tests.unit.streamalert.alert_processor.helpers import get_alert, get_random_alert
label_desc: Use image node_id 16 for calling the TestTeamsOutput obj's underlying member method code with example usage: obj.test_dispatch_success(message_mock, log_mock) without return types