#NEWLINE# def test_delete_client_failure( self ) : #NEWLINE# #INDENT# client = mock . MagicMock ( ) #NEWLINE# client . call . side_effect = glanceclient . exc . NotFound #NEWLINE# ctx = mock . sentinel . ctx #NEWLINE# service = glance . GlanceImageService ( client ) #NEWLINE# self . assertRaises ( exception . ImageNotFound , self . delete , ctx , mock . sentinel . image_id )