

def setUp(self):
    super(LeastCostSchedulerTestCase, self).setUp()

    class FakeZoneManager():
        pass
    zone_manager = FakeZoneManager()
    states = test_abstract_scheduler.fake_zone_manager_service_states(num_hosts=10)
    zone_manager.service_states = states
    self.sched = least_cost.LeastCostScheduler()
    self.sched.zone_manager = zone_manager

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/scheduler/test_least_cost_scheduler.py LeastCostSchedulerTestCase.setUp/original