#NEWLINE# def test_image_properties_filter_xen_arch_compat( self ) : #NEWLINE# #INDENT# img_props = objects . ImageMeta ( properties = objects . ImageMetaProps ( hw_architecture = 'x86_32' ) ) #NEWLINE# hypervisor_version = versionutils . convert_version_to_int ( '6.0.0' ) #NEWLINE# spec_obj = objects . RequestSpec ( image = img_props ) #NEWLINE# capabilities = { #NEWLINE# #INDENT# 'supported_instances' : [ ( arch . I686 , hv_type . KVM , vm_mode . HVM ) ] , #NEWLINE# 'hypervisor_version' : hypervisor_version , #NEWLINE# #UNINDENT# } #NEWLINE# host = fakes . FakeHostState ( 'host1' , 'node1' , capabilities ) #NEWLINE# self . assertTrue ( self . filt_cls . host_passes ( host , spec_obj ) )