  from django.core.exceptions import PermissionDenied
  from django.http import Http404
  from django.utils.encoding import smart_text
  from django.utils.translation import ugettext_lazy as _
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework import status, exceptions
 
</s> remove         data = {'detail': _('Permission denied.')}
 </s> add         msg = _('Permission denied.')
        data = {'detail': six.text_type(msg)} </s> remove         self.assertEqual(response.data, {'detail': 'Not found'})
 </s> add         self.assertEqual(response.data, {'detail': 'Not found.'}) </s> remove         data = {'detail': _('Not found.')}
 </s> add         msg = _('Not found.')
        data = {'detail': six.text_type(msg)} </s> remove #### New pagination schemes.
 </s> add #### New schemes, including cursor pagination.
from django.utils import six
  from django.core.exceptions import PermissionDenied
  from django.http import Http404
from django.utils import six
  from django.utils.encoding import smart_text
  from django.utils.translation import ugettext_lazy as _
  from django.views.decorators.csrf import csrf_exempt
  from rest_framework import status, exceptions
keep add keep keep keep keep
 Fix error text in test. 
rest_framework/views.py