#NEWLINE# def test_numa_topology_filter_fail_memory( self ) : #NEWLINE# #INDENT# instance_topology = objects . InstanceNUMATopology ( cells = [ objects . InstanceNUMACell ( id = 0 , cpuset = set ( [ 1 ] ) , memory = 1024 ) , objects . InstanceNUMACell ( id = 1 , cpuset = set ( [ 3 ] ) , memory = 512 ) ] ) #NEWLINE# spec_obj = self . _get_spec_obj ( numa_topology = instance_topology ) #NEWLINE# host = fakes . FakeHostState ( 'host1' , 'node1' , { #NEWLINE# #INDENT# 'numa_topology' : fakes . NUMA_TOPOLOGY , #NEWLINE# 'pci_stats' : None , #NEWLINE# 'cpu_allocation_ratio' : 16.0 , #NEWLINE# 'ram_allocation_ratio' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( self . filt_cls . host_passes ( host , spec_obj ) )