#NEWLINE# def test_ram_filter_passes( self ) : #NEWLINE# #INDENT# spec_obj = objects . RequestSpec ( flavor = objects . Flavor ( memory_mb = 1024 ) ) #NEWLINE# host = fakes . FakeHostState ( 'host1' , 'node1' , { #NEWLINE# #INDENT# 'free_ram_mb' : 1024 , #NEWLINE# 'total_usable_ram_mb' : 1024 , #NEWLINE# 'ram_allocation_ratio' : 1.0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( self . filt_cls . host_passes ( spec_obj , spec_obj ) )