class_docstr: Test class for the SlackApp
class_docstr_tok: ["Test","class","for","the","SlackApp"]
docstr: SlackApp - Gather Logs - Error Response
docstr_tok: ["SlackApp","-","Gather","Logs","-","Error","Response"]
code: def test_error_response_from_slack(self, log_mock, requests_mock):
      """SlackApp - Gather Logs - Error Response"""
      requests_mock.return_value = Mock(
          status_code=200,
          json=Mock(return_value={"ok": False, "error": "paid_only"}),
      )
      assert_false(self._app._gather_logs())
      log_mock.assert_called_with(
          "Received error or warning from slack: %s", "paid_only"
      )
  
imports: import os
  from mock import Mock, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, assert_false, assert_count_equal, raises
  from streamalert.apps._apps.slack import SlackApp, SlackAccessApp, SlackIntegrationsApp
  from tests.unit.streamalert.apps.test_helpers import get_event, put_mock_params
  from tests.unit.streamalert.shared.test_config import get_mock_lambda_context
label_desc: Use image node_id 4 for calling the TestSlackApp obj's underlying member method code with example usage: obj.test_error_response_from_slack(log_mock, requests_mock) without return types