class_docstr: Test class for the DuoApp
docstr: DuoApp - Get Duo Logs, Bad Response
docstr_tok: ["DuoApp","-","Get","Duo","Logs",",","Bad","Response"]
code: def test_get_duo_logs_bad_response(self, requests_mock):
      """DuoApp - Get Duo Logs, Bad Response"""
      requests_mock.return_value = Mock(
          status_code=404, content="something went wrong"
      )
  
      assert_false(self._app._get_duo_logs("hostname", "full_url"))
  
      # The .json should be called on the response once, to return the response.
      assert_equal(requests_mock.return_value.json.call_count, 1)
  
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
  import requests
  from streamalert.apps._apps.duo import DuoAdminApp, DuoApp, DuoAuthApp
  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 8 for calling the TestDuoApp obj's underlying member method code with example usage: obj.test_get_duo_logs_bad_response(requests_mock) without return types