# Path: seedbox/process/manager.py
# LOG = logging.getLogger(__name__)
# class TaskManager(object):
#     def __init__(self):
#     def add_tasks(self, tasks):
#     def run(self):
#     def shutdown(self):
# 
# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):


from seedbox.process import manager
from seedbox.tests import test


class SampleTask(object):

    def __call__(self):
        return [True]


class ManagerTestCase(test.ConfiguredBaseTestCase):

    def test_manager(self):
        mgr = manager.TaskManager()

        _tasks = []
        _tasks.append(SampleTask())
        _tasks.append(SampleTask())
        _tasks.append(SampleTask())

        mgr.add_tasks(_tasks)
        mgr.add_tasks(SampleTask())

        self.assertEqual(len(mgr.tasks), 4)

        results = mgr.run()

# Path: seedbox/process/manager.py
# LOG = logging.getLogger(__name__)
# class TaskManager(object):
#     def __init__(self):
#     def add_tasks(self, tasks):
#     def run(self):
#     def shutdown(self):
# 
# Path: seedbox/tests/test.py
# class ConfiguredBaseTestCase(BaseTestCase):
#     def setUp(self):
#     def tearDown(self):
#     def _make_dir(self, dirname):
#     def set_required_options(self):


# Path: seedbox/tests/process/test_manager.py
from seedbox.process import manager
from seedbox.tests import test



class SampleTask(object):

    def __call__(self):
        return [True]


class ManagerTestCase(test.ConfiguredBaseTestCase):

    def test_manager(self):
        mgr = manager.TaskManager()

        _tasks = []
        _tasks.append(SampleTask())
        _tasks.append(SampleTask())
        _tasks.append(SampleTask())

        mgr.add_tasks(_tasks)
        mgr.add_tasks(SampleTask())

        self.assertEqual(len(mgr.tasks), 4)

        results = mgr.run()

        self.assertEqual(len(mgr.tasks), 0)