#NEWLINE# @ mock . patch . object ( deploy_utils , 'validate_image_properties' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( service_utils , 'is_glance_image' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( irmc_boot , '_parse_deploy_info' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( irmc_boot , 'check_share_fs_mounted' , spec_set = True , autospec = True ) #NEWLINE# def test_validate_non_glance_image( self , check_share_fs_mounted_mock , deploy_info_mock , is_glance_image_mock , validate_prop_mock ) : #NEWLINE# #INDENT# d_info = { #NEWLINE# #INDENT# 'image_source' : '733d1c44-a2ea-414b-aca7-69decf20d810' , #NEWLINE# #UNINDENT# } #NEWLINE# deploy_info_mock . return_value = d_info #NEWLINE# is_glance_image_mock . return_value = False #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid , shared = False ) as task : #NEWLINE# #INDENT# task . driver . boot . validate ( validate_prop_mock ) #NEWLINE# check_share_fs_mounted_mock . assert_called_once_with ( ) #NEWLINE# deploy_info_mock . assert_called_once_with ( task . node ) #NEWLINE# validate_prop_mock . assert_called_once_with ( task . context , d_info , [ 'kernel' , 'ramdisk' ] )