#NEWLINE# def test_image_properties_filter_passes_without_hyper_version( self ) : #NEWLINE# #INDENT# img_props = objects . ImageMeta ( properties = objects . ImageMetaProps ( hw_architecture = arch . X86_64 , img_hv_type = hv_type . KVM , hw_vm_mode = vm_mode . HVM , img_hv_requested_version = '>=6.0' ) ) #NEWLINE# spec_obj = objects . RequestSpec ( image = img_props ) #NEWLINE# capabilities = { #NEWLINE# #INDENT# 'enabled' : True , #NEWLINE# 'supported_instances' : [ ( arch . X86_64 , hv_type . KVM , vm_mode . HVM ) ] , #NEWLINE# #UNINDENT# } #NEWLINE# host = fakes . FakeHostState ( 'host1' , 'node1' , capabilities ) #NEWLINE# self . assertTrue ( self . filt_cls . host_passes ( host , spec_obj ) )