#NEWLINE# def _get_fake_cost_inputs( self ) : #NEWLINE# #INDENT# fake_hosts = self . _get_all_hosts ( ) #NEWLINE# fake_hosts = list ( fake_hosts ) #NEWLINE# tmp = [ ] #NEWLINE# for i in range ( len ( fake_hosts ) ) : #NEWLINE# #INDENT# for fh in fake_hosts : #NEWLINE# #INDENT# if ( fh . host == ( 'host%s' % ( i + 1 ) ) ) : #NEWLINE# #INDENT# tmp . append ( fh ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# fake_hosts = tmp #NEWLINE# fake_filter_properties = { #NEWLINE# #INDENT# 'context' : self . context . elevated ( ) , #NEWLINE# 'num_instances' : 3 , #NEWLINE# 'instance_uuids' : [ ( 'fake_uuid_%s' % x ) for x in range ( 3 ) ] , #NEWLINE# #UNINDENT# } #NEWLINE# return ( fake_hosts , fake_filter_properties )