class_docstr: Test class for the SlackApp
class_docstr_tok: ["Test","class","for","the","SlackApp"]
docstr: SlackApp - Gather Logs - Bad Response
docstr_tok: ["SlackApp","-","Gather","Logs","-","Bad","Response"]
code: def test_error_code_return(self, log_mock, requests_mock):
      """SlackApp - Gather Logs - Bad Response"""
      requests_mock.return_value = Mock(status_code=404)
      assert_false(self._app._gather_logs())
      log_mock.assert_called_with("Received bad response from slack")
  
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 3 for calling the TestSlackApp obj's underlying member method code with example usage: obj.test_error_code_return(log_mock, requests_mock) without return types