#NEWLINE# @ mock . patch ( 'nova.image.glance.LOG' ) #NEWLINE# @ mock . patch ( 'nova.image.glance.GlanceImageService.show' ) #NEWLINE# def test_download_missing_signature_metadata( self , mock_show , mock_log ) : #NEWLINE# #INDENT# mock_show . return_value = { #NEWLINE# #INDENT# 'properties' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaisesRegex ( exception . SignatureVerificationError , 'Required image properties for signature verification do not exist. Cannot verify signature. Missing property: .*' , self . service . download , context = None , image_id = None , data = None , dst_path = None )