class_docstr: Test class for the OneLoginApp
class_docstr_tok: ["Test","class","for","the","OneLoginApp"]
docstr: OneLoginApp - Generate Headers, Bad Response
docstr_tok: ["OneLoginApp","-","Generate","Headers",",","Bad","Response"]
code: def test_generate_headers_bad_response(self, requests_mock):
      """OneLoginApp - Generate Headers, Bad Response"""
      self.set_config_values("us", "bad_id", "bad_secret")
      requests_mock.return_value = Mock(
          status_code=404,
          json=Mock(return_value={"message": "something went wrong"}),
      )
      assert_false(self._app._generate_headers())
  
imports: import os
  from mock import Mock, patch
  from moto import mock_ssm
  from nose.tools import assert_equal, assert_false, assert_count_equal
  from streamalert.apps._apps.onelogin import OneLoginApp
  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 TestOneLoginApp obj's underlying member method code with example usage: obj.test_generate_headers_bad_response(requests_mock) without return types