#NEWLINE# @ patch ( 'twilio.rest.resources.base.make_twilio_request' ) #NEWLINE# def test_delete_instance( self , request ) : #NEWLINE# #INDENT# resp = Mock ( ) #NEWLINE# resp . content = '' #NEWLINE# resp . status_code = 204 #NEWLINE# request . return_value = resp #NEWLINE# uri = '{0}/Workspaces/{1}' . format ( BASE_URI , WORKSPACE_SID ) #NEWLINE# list_resource = Workspaces ( BASE_URI , AUTH ) #NEWLINE# workspace = Workspace ( list_resource , WORKSPACE_SID ) #NEWLINE# workspace . delete ( ) #NEWLINE# request . assert_called_with ( 'DELETE' , uri , auth = AUTH , use_json_extension = False )