#NEWLINE# @ mock . patch . object ( firmware_controller , 'get_fw_extractor' , spec_set = True , autospec = True ) #NEWLINE# def test_process_firmware_image_asks_to_upload_firmware_file( self , get_extractor_mock ) : #NEWLINE# #INDENT# get_extractor_mock . return_value . extract . return_value = ( 'core_fw_file.bin' , True ) #NEWLINE# self . client . model = 'Gen9' #NEWLINE# ( raw_fw_file , to_upload , is_extracted ) = utils . process_firmware_image ( self . some_compact_fw_file , self . client ) #NEWLINE# self . assertEqual ( 'core_fw_file.bin' , raw_fw_file ) #NEWLINE# self . assertTrue ( to_upload )