#NEWLINE# @ mock . patch ( 'nova.image.glance.LOG' ) #NEWLINE# @ mock . patch ( 'nova.image.glance.GlanceImageService.show' ) #NEWLINE# @ mock . patch ( 'nova.signature_utils.get_verifier' ) #NEWLINE# def test_download_with_signature_verification( self , mock_get_verifier , mock_show , mock_log ) : #NEWLINE# #INDENT# mock_get_verifier . return_value = self . MockVerifier ( ) #NEWLINE# mock_show . return_value = mock_show . fake_img_props #NEWLINE# res = self . service . download ( context = None , image_id = None , data = None , dst_path = None ) #NEWLINE# self . assertEqual ( self . fake_img_data , res ) #NEWLINE# mock_get_verifier . assert_called_once_with ( None , 'uuid' , 'SHA-224' , 'signature' , 'RSA-PSS' ) #NEWLINE# mock_log . info . assert_called_once_with ( mock . ANY , mock . ANY )