  from django.test import TestCase
  from django.test.client import RequestFactory
  from rest_framework import generics, status
  from rest_framework.tests.models import BasicModel
  
  factory = RequestFactory()
  
  
 
</s> remove     def get_serializer(self, data=None, files=None, instance=None, kwargs=None):
        # TODO: add support for files
        # TODO: add support for seperate serializer/deserializer
 </s> add     def get_serializer_class(self):
        """
        Return the class to use for the serializer.
        Use `self.serializer_class`, falling back to constructing a
        model serializer class from `self.model_serializer_class`
        """ </s> remove class TestPaginatedView(TestCase):
 </s> add class IntegrationTestPagination(TestCase):
    """
    Integration tests for paginated list views.
    """
 </s> remove         context = self.get_serializer_context()
        return serializer_class(data, instance=instance, context=context, **kwargs)
 </s> add         return serializer_class </s> remove         request = self.context['request']
        return request.build_absolute_uri('?page=%d' % page)
 </s> add         request = self.context.get('request')
        relative_url = '?page=%d' % page
        if request:
            return request.build_absolute_uri('?page=%d' % page)
        return relative_url
from rest_framework import generics, status, pagination
  from django.test import TestCase
  from django.test.client import RequestFactory
from rest_framework import generics, status, pagination
  from rest_framework.tests.models import BasicModel
  
  factory = RequestFactory()
  
  
keep keep replace keep keep keep keep keep
 Expand pagination support, add docs 
rest_framework/tests/pagination.py