def test_initialize(): """test_initialize.""" team = BaseTeam("team") team.cost_list = [9.0, 7.2] w = BaseWorker("w1") team.worker_list = [w] w.state = BaseWorkerState.WORKING w.cost_list = [9.0, 7.2] w.assigned_task_list = [BaseTask("task")] team.initialize() assert team.cost_list == [] assert w.state == BaseWorkerState.FREE assert w.cost_list == [] assert w.assigned_task_list == []
def test_initialize(): team = BaseTeam("team") team.cost_list = [9.0, 7.2] w = BaseResource("w1") team.worker_list = [w] w.state = BaseResourceState.WORKING w.cost_list = [9.0, 7.2] w.start_time_list = [0] w.finish_time_list = [1] w.assigned_task_list = [BaseTask("task")] team.initialize() assert team.cost_list == [] assert w.state == BaseResourceState.FREE assert w.cost_list == [] assert w.start_time_list == [] assert w.finish_time_list == [] assert w.assigned_task_list == []