Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Str Num Return ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Dict Str Str AttributeLoad NameLoad attr Num Assign NameStore Call SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListComp ListComp Call NameLoad NameLoad Num comprehension NameStore NameLoad comprehension NameStore NameLoad Assign NameStore ListComp ListComp Call NameLoad NameLoad Num comprehension NameStore NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A Test case for solver scheduler IO Ops cost. nova context nova test nova_solverscheduler.scheduler.solvers costs nova_solverscheduler.scheduler.solvers.costs io_ops_cost nova_solverscheduler.tests.scheduler solver_scheduler_fakes fakes TestIoOpsCost N/A N/A test NoDBTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestIoOpsCost self setUp N/A N/A self context N/A N/A context RequestContext fake_usr fake_proj N/A N/A self cost_handler N/A N/A costs CostHandler N/A N/A self cost_classes N/A N/A N/A self cost_handler get_matching_classes N/A nova_solverscheduler.scheduler.solvers.costs.io_ops_cost.IoOpsCost N/A _get_all_hosts N/A N/A self N/A N/A N/A host1 N/A N/A fakes FakeSolverSchedulerHostState host1 node1 N/A num_io_ops 0 N/A host2 N/A N/A fakes FakeSolverSchedulerHostState host2 node2 N/A num_io_ops 1 N/A host3 N/A N/A fakes FakeSolverSchedulerHostState host3 node3 N/A num_io_ops 2 N/A host4 N/A N/A fakes FakeSolverSchedulerHostState host4 node4 N/A num_io_ops 5 N/A N/A host1 host2 host3 host4 N/A test_io_ops_cost_multiplier_1 N/A N/A self N/A N/A N/A N/A N/A self flags io_ops_cost_multiplier 0.5 group solver_scheduler N/A N/A N/A self assertEqual 0.5 N/A N/A N/A N/A io_ops_cost IoOpsCost cost_multiplier N/A test_io_ops_cost_multiplier_2 N/A N/A self N/A N/A N/A N/A N/A self flags io_ops_cost_multiplier -2 group solver_scheduler N/A N/A N/A self assertEqual -2 N/A N/A N/A N/A io_ops_cost IoOpsCost cost_multiplier N/A test_get_extended_cost_matrix N/A N/A self N/A N/A N/A fake_hosts N/A N/A self _get_all_hosts N/A fake_hosts N/A list fake_hosts N/A fake_filter_properties N/A context num_instances N/A self context 3 N/A fake_cost N/A N/A N/A self cost_classes N/A 0 N/A expected_x_cost_mat N/A N/A 0.0 0.2 0.4 0.6 N/A 0.2 0.4 0.6 0.8 N/A 0.4 0.6 0.8 1.0 N/A 1.0 1.2 1.4 1.6 N/A x_cost_mat N/A N/A fake_cost get_extended_cost_matrix fake_hosts fake_filter_properties N/A expected_x_cost_mat N/A N/A N/A round val 4 N/A val row N/A row expected_x_cost_mat N/A x_cost_mat N/A N/A N/A round val 4 N/A val row N/A row x_cost_mat N/A N/A N/A self assertEqual expected_x_cost_mat x_cost_mat N/A N/A