#NEWLINE# def test_aggregate_image_properties_isolation_props_not_match_fails( self , agg_mock ) : #NEWLINE# #INDENT# agg_mock . return_value = { #NEWLINE# #INDENT# 'hw_vm_mode' : 'hvm' , #NEWLINE# #UNINDENT# } #NEWLINE# spec_obj = objects . RequestSpec ( context = mock . sentinel . ctx , image = objects . ImageMeta ( properties = objects . ImageMetaProps ( hw_vm_mode = 'xen' ) ) ) #NEWLINE# host = fakes . FakeHostState ( 'host1' , 'compute' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( self . filt_cls . host_passes ( agg_mock , spec_obj ) )