'Test that the request for a single document deletion is done properly.'

def test_cloudsearch_delete(self):

    document = DocumentServiceConnection(endpoint='doc-demo-userdomain.us-east-1.cloudsearch.amazonaws.com')
    document.delete('5')
    document.commit()
    args = json.loads(HTTPretty.last_request.body.decode('utf-8'))[0]
    self.assertEqual(args['type'], 'delete')
    self.assertEqual(args['id'], '5')
