#NEWLINE# @ mock . patch . object ( iscsi_deploy . VendorPassthru , 'continue_deploy' , spec_set = True , autospec = True ) #NEWLINE# @ mock . patch . object ( ilo_common , 'update_secure_boot_mode' , autospec = True ) #NEWLINE# @ mock . patch . object ( ilo_common , 'update_boot_mode' , autospec = True ) #NEWLINE# def test_continue_deploy( self , func_update_boot_mode , func_update_secure_boot_mode , pxe_vendorpassthru_mock ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'address' : '123456' , #NEWLINE# #UNINDENT# } #NEWLINE# with task_manager . acquire ( self . context , self . node . uuid , shared = False ) as task : #NEWLINE# #INDENT# task . node . provision_state = states . DEPLOYWAIT #NEWLINE# task . node . target_provision_state = states . ACTIVE #NEWLINE# task . driver . vendor . continue_deploy ( task , ** kwargs ) #NEWLINE# func_update_boot_mode . assert_called_once_with ( func_update_boot_mode ) #NEWLINE# func_update_secure_boot_mode . assert_called_once_with ( task , True ) #NEWLINE# pxe_vendorpassthru_mock . assert_called_once_with ( mock . ANY , task , ** kwargs )