  from django.core.paginator import Paginator
  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()
  
  
  class RootView(generics.ListCreateAPIView):
 
</s> remove 
 </s> add import django_filters </s> remove Generic views that provide commmonly needed behaviour.
 </s> add Generic views that provide commonly needed behaviour. </s> remove         Create 26 BasicModel intances.
 </s> add         Create 26 BasicModel instances.
from rest_framework.tests.models import BasicModel, FilterableItem
import django_filters
  from django.core.paginator import Paginator
  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, FilterableItem
import django_filters
  
  factory = RequestFactory()
  
  
  class RootView(generics.ListCreateAPIView):
keep keep keep keep replace keep keep keep keep keep
 First attempt at adding filter support.

The filter support uses django-filter to work its magic. 
rest_framework/tests/pagination.py