docstr: StreamQuery - QueryPack - fetch_results - done
docstr_tok: ["StreamQuery","-","QueryPack","-","fetch_results","-","done"]
code: def test_fetch_results_done(self):
      """StreamQuery - QueryPack - fetch_results - done"""
      self._config.generate_query.return_value = "MOCK QUERY STRING"
      self._execution.athena_client.run_async_query.return_value = (
          "query_id"
      )
      self._query_pack.start_query()
  
      mock_execution = MagicMock(name="MockedQueryExecution")
      self._execution.athena_client.get_query_execution.return_value = (
          mock_execution
      )
      self._query_pack.load_query_execution()
  
      mock_execution.is_succeeded.return_value = True
      mocked_res = MagicMock(name="MockedResult")
      self._execution.athena_client.get_query_result.return_value = (
          mocked_res
      )
  
      assert_equals(self._query_pack.fetch_results(), mocked_res)
  
imports: from datetime import datetime, timezone
  from mock import MagicMock, patch
  from nose.tools import assert_equals, assert_false, assert_true
  from streamalert.scheduled_queries.query_packs.manager import QueryPack, QueryPacksManager, QueryPackExecutionContext, QueryPacksManagerFactory
  from streamalert.scheduled_queries.query_packs.parameters import QueryParameterGenerator
label_desc: Use image node_id 10 for calling the TestQueryPack obj's underlying member method code with example usage: obj.test_fetch_results_done() without return types