#NEWLINE# @ mock . patch . object ( images , 'create_boot_iso' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( deploy_utils , 'get_boot_mode_for_deploy' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( images , 'get_image_properties' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( images , 'fetch' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( irmc_boot , '_parse_deploy_info' , spec_set = True , autospec = True ) #NEWLINE# def test__prepare_boot_iso_file( self , deploy_info_mock , fetch_mock , image_props_mock , boot_mode_mock , create_boot_iso_mock ) : #NEWLINE# #INDENT# deploy_info_mock . return_value = { #NEWLINE# #INDENT# 'irmc_boot_iso' : 'irmc_boot.iso' , #NEWLINE# #UNINDENT# } #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid ) as task : #NEWLINE# #INDENT# irmc_boot . _prepare_boot_iso ( task , 'root-uuid' ) #NEWLINE# deploy_info_mock . assert_called_once_with ( task . node ) #NEWLINE# self . assertFalse ( self . called ) #NEWLINE# self . assertFalse ( image_props_mock . called ) #NEWLINE# self . assertFalse ( boot_mode_mock . called ) #NEWLINE# self . assertFalse ( create_boot_iso_mock . called ) #NEWLINE# task . node . refresh ( ) #NEWLINE# self . assertEqual ( 'irmc_boot.iso' , task . node . driver_internal_info [ 'irmc_boot_iso' ] )