#NEWLINE# @ mock . patch . object ( time , 'sleep' ) #NEWLINE# @ mock . patch . object ( ribcl . RIBCLOperations , 'get_product_name' ) #NEWLINE# @ mock . patch . object ( common , 'wait_for_ilo_after_reset' , ( lambda x : None ) ) #NEWLINE# def test_wait_for_ribcl_firmware_update_silent_if_reset_exc_not_captured( self , get_product_name_mock , sleep_mock ) : #NEWLINE# #INDENT# get_product_name_mock . side_effect = [ 'Rap metal' , 'Death metal' , 'Black metal' , 'Extreme metal' , 'Folk metal' , 'Gothic metal' , 'Power metal' , 'War metal' , 'Thrash metal' , 'Groove metal' ] #NEWLINE# common . wait_for_ribcl_firmware_update_to_complete ( sleep_mock . ribcl ) #NEWLINE# self . assertEqual ( 10 , get_product_name_mock . call_count )