# Path: xudd/demos/special_hive.py
# class SpecialHive(Hive):
# class FanBoy(Actor):
#     def __init__(self, *args, **kwargs):
#     def be_fanboyed(self, message):
#     def __init__(self, hive, id):
#     def nerd_out_to_hive(self, message):
# def main():
# 
# Path: xudd/demos/lotsamessages.py
# class SuccessTracker(object):
# class DepartmentChair(Actor):
# class Professor(Actor):
# class Assistant(Actor):
#     def __init__(self):
# def worker_allocation(jobs, workers):
#     def __init__(self, hive, id, num_worker_processes=0):
#     def setup_worker_processes(self, message):
#     def oversee_experiments(self, message):
#     def experiment_is_done(self, message):
#     def __init__(self, hive, id):
#     def run_experiments(self, message):
#     def __init__(self, hive, id):
#     def run_errand(self, message):
# def main(num_experiments=DEFAULT_NUM_STEPS, num_steps=DEFAULT_NUM_STEPS,
#          subprocesses=None, slacker_time=0):
# def cli():
# DEFAULT_NUM_EXPERIMENTS = 20
# DEFAULT_NUM_STEPS = 5000


from xudd.demos import special_hive
from xudd.demos import lotsamessages

def test_special_hive():
    """
    This demo tests that demos are actually actors and are in fact subclassable.
    """
    special_hive.main()


def test_lotsamessages():
    """
    Test the lotsamessages demo (but not with too many messages ;))
    """

# Path: xudd/demos/special_hive.py
# class SpecialHive(Hive):
# class FanBoy(Actor):
#     def __init__(self, *args, **kwargs):
#     def be_fanboyed(self, message):
#     def __init__(self, hive, id):
#     def nerd_out_to_hive(self, message):
# def main():
# 
# Path: xudd/demos/lotsamessages.py
# class SuccessTracker(object):
# class DepartmentChair(Actor):
# class Professor(Actor):
# class Assistant(Actor):
#     def __init__(self):
# def worker_allocation(jobs, workers):
#     def __init__(self, hive, id, num_worker_processes=0):
#     def setup_worker_processes(self, message):
#     def oversee_experiments(self, message):
#     def experiment_is_done(self, message):
#     def __init__(self, hive, id):
#     def run_experiments(self, message):
#     def __init__(self, hive, id):
#     def run_errand(self, message):
# def main(num_experiments=DEFAULT_NUM_STEPS, num_steps=DEFAULT_NUM_STEPS,
#          subprocesses=None, slacker_time=0):
# def cli():
# DEFAULT_NUM_EXPERIMENTS = 20
# DEFAULT_NUM_STEPS = 5000


# Path: xudd/tests/test_demos.py
from xudd.demos import special_hive
from xudd.demos import lotsamessages


def test_special_hive():
    """
    This demo tests that demos are actually actors and are in fact subclassable.
    """
    special_hive.main()


def test_lotsamessages():
    """
    Test the lotsamessages demo (but not with too many messages ;))
    """

    assert lotsamessages.main(num_experiments=20, num_steps=20) is True