class_docstr: Test class for KomandOutput
docstr: KomandOutput - Dispatch Failure
docstr_tok: ["KomandOutput","-","Dispatch","Failure"]
code: def test_dispatch_container_failure(self, post_mock, log_mock):
      """KomandOutput - Dispatch Failure"""
      post_mock.return_value.status_code = 400
      json_error = {"message": "error message", "errors": ["error1"]}
      post_mock.return_value.json.return_value = json_error
  
      assert_false(self._dispatcher.dispatch(get_alert(), self.OUTPUT))
  
      log_mock.assert_called_with(
          "Failed to send alert to %s:%s", self.SERVICE, self.DESCRIPTOR
      )
  
file_path: streamalert/tests/unit/streamalert/alert_processor/outputs/test_komand.py
imports: from mock import patch, Mock, MagicMock
  from nose.tools import assert_false, assert_true
  from streamalert.alert_processor.outputs.komand import KomandOutput
  from tests.unit.streamalert.alert_processor.helpers import get_alert
label_desc: Use image node_id 3 for calling the TestKomandutput obj's underlying member method code with example usage: obj.test_dispatch_container_failure(post_mock, log_mock) without return types