Module Import 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 AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign NameStore Call AttributeLoad NameLoad attr Str Str Dict Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args defaults vararg kwarg body If CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Return Call NameLoad ListLoad Str Str If CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Return Call NameLoad ListLoad Str If CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Return Call NameLoad ListLoad If CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Return Call NameLoad ListLoad Str decorator_list Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock nova context nova test nova_solverscheduler.scheduler.solvers.constraints aggregate_num_instances nova_solverscheduler.tests.scheduler solver_scheduler_fakes fakes TestAggregateNumInstancesConstraint 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 TestAggregateNumInstancesConstraint self setUp N/A N/A self constraint_cls N/A aggregate_num_instances AggregateNumInstancesConstraint N/A N/A self context N/A N/A context RequestContext fake fake N/A N/A N/A self _generate_fake_constraint_input N/A _generate_fake_constraint_input N/A N/A self N/A N/A N/A N/A self fake_filter_properties N/A context num_instances N/A self context 3 N/A host1 N/A N/A fakes FakeSolverSchedulerHostState host1 node1 N/A N/A host2 N/A N/A fakes FakeSolverSchedulerHostState host2 node1 N/A N/A host3 N/A N/A fakes FakeSolverSchedulerHostState host3 node1 N/A N/A host4 N/A N/A fakes FakeSolverSchedulerHostState host4 node1 N/A N/A N/A self fake_hosts N/A host1 host2 host3 host4 N/A test_get_constraint_matrix N/A N/A self agg_mock N/A N/A N/A N/A N/A self flags max_instances_per_host 1 _agg_mock_side_effect N/A N/A N/A args kwargs N/A N/A N/A N/A N/A args N/A 0 host host1 N/A N/A N/A set N/A 2 3 N/A N/A N/A N/A args N/A 0 host host2 N/A N/A N/A set N/A 4 N/A N/A N/A N/A args N/A 0 host host3 N/A N/A N/A set N/A N/A N/A N/A N/A args N/A 0 host host4 N/A N/A N/A set N/A invalidval N/A N/A N/A agg_mock side_effect _agg_mock_side_effect N/A expected_cons_mat N/A N/A True True False N/A True True True N/A True False False N/A True False False N/A cons_mat N/A N/A N/A N/A self constraint_cls get_constraint_matrix N/A self fake_hosts N/A self fake_filter_properties N/A N/A N/A agg_mock assert_any_call N/A N/A self fake_hosts N/A 0 max_instances_per_host N/A N/A N/A agg_mock assert_any_call N/A N/A self fake_hosts N/A 1 max_instances_per_host N/A N/A N/A agg_mock assert_any_call N/A N/A self fake_hosts N/A 2 max_instances_per_host N/A N/A N/A agg_mock assert_any_call N/A N/A self fake_hosts N/A 3 max_instances_per_host N/A N/A N/A self assertEqual expected_cons_mat cons_mat N/A N/A N/A mock patch nova_solverscheduler.scheduler.solvers.utils.aggregate_values_from_key N/A