def _generate_fake_constraint_input(self):
        self.fake_filter_properties = {
                'instance_type': {'vcpus': 2},
                'instance_uuids': ['fake_uuid_%s' % x for x in range(2)],
                'num_instances': 2}
        host1 = fakes.FakeSolverSchedulerHostState('host1', 'node1',
                {'vcpus_total': 4, 'vcpus_used': 4})
        host2 = fakes.FakeSolverSchedulerHostState('host2', 'node1',
                {'vcpus_total': 8, 'vcpus_used': 2})
        host3 = fakes.FakeSolverSchedulerHostState('host3', 'node1', {})
        self.fake_hosts = [host1, host2, host3]
dataset/ETHPy150Open openstack/nova-solver-scheduler/nova_solverscheduler/tests/scheduler/solvers/constraints/test_vcpu_constraint.py/TestVcpuConstraint._generate_fake_constraint_input/original