#NEWLINE# @ mock . patch . object ( ilo_vendor . VendorPassthru , '_validate_boot_into_iso' , spec_set = True , autospec = True ) #NEWLINE# def test_validate_boot_into_iso( self , validate_boot_into_iso_mock ) : #NEWLINE# #INDENT# with task_manager . acquire ( self . context , self . node . uuid , shared = False ) as task : #NEWLINE# #INDENT# vendor = ilo_vendor . VendorPassthru ( ) #NEWLINE# vendor . validate ( task , method = 'boot_into_iso' , foo = 'bar' ) #NEWLINE# validate_boot_into_iso_mock . assert_called_once_with ( vendor , task , { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } )