#NEWLINE# def test_delete_link( self ) : #NEWLINE# #INDENT# tenant = fakes . tenants [ 'baz' ] #NEWLINE# app = self . get_app ( ) #NEWLINE# for volume in fakes . volumes [ tenant [ 'id' ] ] : #NEWLINE# #INDENT# for a in volume [ 'attachments' ] : #NEWLINE# #INDENT# link_id = '_' . join ( [ a [ 'serverId' ] , volume [ 'id' ] ] ) #NEWLINE# req = self . _build_req ( ( '/storagelink/%s' % link_id ) , tenant [ 'id' ] , method = 'DELETE' ) #NEWLINE# resp = req . get_response ( app ) #NEWLINE# self . assertContentType ( resp ) #NEWLINE# self . assertEqual ( 204 , resp . status_code )