docstr: StreamQuery - QueryPacksManager - start_queries - from cache
docstr_tok: ["StreamQuery","-","QueryPacksManager","-","start_queries","-","from","cache"]
code: def test_start_queries_from_cache(self):
      """StreamQuery - QueryPacksManager - start_queries - from cache"""
      logger = MagicMock(name="Logger")
      self._execution_context.logger = logger
      self._execution_context.state_manager.has.return_value = True
      self._execution_context.state_manager.get.return_value = {
          "query_execution_id": "qwertyuiop"
      }
  
      config1 = MagicMock(name="Config1")
      config1.name = "test_query_pack_name"
      config2 = MagicMock(name="Config2")
      config2.name = "test_query_pack_name_2"
      self._execution_context.query_pack_repository.get_packs.return_value = [
          config1,
          config2,
      ]
  
      self._manager.load_query_configurations()
      self._manager.initialize_query_packs()
      self._manager.start_queries()
  
      logger.debug.assert_any_call(
          'Existing Query Execution exists for "%s": [%s]',
          "test_query_pack_name",
          "qwertyuiop",
      )
  
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 4 for calling the TestQueryPacksManager obj's underlying member method code with example usage: obj.test_start_queries_from_cache() without return types