@patch('twilio.rest.resources.base.Resource.request')
def test_delete_transcription(req):
 resp = Mock()
 resp.content = ''
 resp.status_code = 204
 req.return_value = (resp, {})
 app = Transcription(transcriptions, 'TR123')
 app.delete()
 uri = 'https://api.twilio.com/2010-04-01/Accounts/AC123/Transcriptions/TR123'
 req.assert_called_with('DELETE', uri)

@ patch ( 'twilio.rest.resources.base.Resource.request' ) def test_delete_transcription ( req ) : resp = Mock ( ) resp . content = '' resp . status_code = 204 req . return_value = ( resp , { } ) app = Transcription ( transcriptions , 'TR123' ) app . delete ( ) uri = 'https://api.twilio.com/2010-04-01/Accounts/AC123/Transcriptions/TR123' req . assert_called_with ( 'DELETE' , uri )
deleting a transcription should work .