#NEWLINE# def _generate_fake_constraint_input( self ) : #NEWLINE# #INDENT# self . fake_filter_properties = { #NEWLINE# #INDENT# 'instance_uuids' : [ ( 'fake_uuid_%s' % x ) for x in range ( 2 ) ] , #NEWLINE# 'num_instances' : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# host1 = fakes . FakeSolverSchedulerHostState ( 'host1' , 'node1' , { #NEWLINE# #INDENT# 'num_io_ops' : 6 , #NEWLINE# #UNINDENT# } ) #NEWLINE# host2 = fakes . FakeSolverSchedulerHostState ( 'host2' , 'node1' , { #NEWLINE# #INDENT# 'num_io_ops' : 10 , #NEWLINE# #UNINDENT# } ) #NEWLINE# host3 = fakes . FakeSolverSchedulerHostState ( 'host3' , 'node1' , { #NEWLINE# #INDENT# 'num_io_ops' : 15 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . fake_hosts = [ host1 , host2 , host3 ]