

def assertWeights(self, expected, num, request_spec, hosts):
    weighted = self.sched.weigh_hosts('compute', expected, hosts)
    self.assertDictListMatch(weighted, expected, approx_equal=True)

dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/scheduler/test_least_cost_scheduler.py LeastCostSchedulerTestCase.assertWeights/VarMisuse@28/38 `request_spec`->`expected`