

@mock.patch.object(os.path, 'exists', mock.MagicMock(return_value=True))
def test_bootstrap(self):
    exec_exporter = ExecutionsExporter(None, None)
    exec_exporter._bootstrap()
    self.assertEqual(exec_exporter.pending_executions.qsize(), len(exec_exporter.saved_executions))
    count = 0
    while (count < exec_exporter.pending_executions.qsize()):
        self.assertTrue(isinstance(exec_exporter.pending_executions.get(), ActionExecutionAPI))
        count += 1

dataset/ETHPy150Open StackStorm/st2/st2exporter/tests/integration/test_export_worker.py TestExportWorker.test_bootstrap/VarMisuse@62/82 `self`->`exec_exporter`