def setup(self):
     super(TestEsworkerSNSSQS, self).setup()
     mq_conn = 'abc'
     task_queue = 'example-logs-mozdef'
     es_connection = self.es_client
     options = DotDict({
         "esbulksize": 0,
         "mozdefhostname": "unittest.hostname",
         "taskexchange": task_queue,
         'plugincheckfrequency': 120,
     })
     self.consumer = taskConsumer(mq_conn, es_connection, options)
 def setup(self):
     super(TestEsworkerSNSSQS, self).setup()
     mq_conn = 'abc'
     task_queue = 'example-logs-mozdef'
     es_connection = self.es_client
     options = DotDict(
         {
             "esbulksize": 0,
             "mozdefhostname": "unittest.hostname",
             "taskexchange": task_queue,
             'plugincheckfrequency': 120,
         }
     )
     self.consumer = taskConsumer(mq_conn, task_queue, es_connection, options)
 def setup(self):
     super().setup()
     mq_conn = 'abc'
     task_queue = 'example-logs-mozdef'
     es_connection = self.es_client
     options = DotDict({
         "esbulksize": 0,
         "mozdefhostname": "unittest.hostname",
         "taskexchange": task_queue,
     })
     if 'lib' in sys.modules:
         del sys.modules['lib']
     self.mq_path = os.path.join(os.path.dirname(__file__), "../../mq/")
     sys.path.insert(0, self.mq_path)
     from mq import esworker_sns_sqs
     self.consumer = esworker_sns_sqs.taskConsumer(mq_conn, es_connection,
                                                   options)