      def get(self, request):
          return range(0, self.total)
  
      def post(self, request):
          return Response(status.HTTP_201_CREATED, {'status': 'OK'})
  
  
  class TestPagination(TestCase):
      def setUp(self):
          self.req = RequestFactory()
 
</s> remove         return range(0, self.total)
 </s> add         return Response(range(0, self.total)) </s> remove                 return {'a':1, 'b':2, 'c':3}
 </s> add                 return Response({'a':1, 'b':2, 'c':3}) </s> remove         return {'a': 1, 'b': 2, 'c': 3}
 </s> add         return HttpResponse({'a': 1, 'b': 2, 'c': 3}) </s> remove         return 'foo'
 </s> add         return Response('foo') </s> remove             return Response(status.HTTP_200_OK)
 </s> add             return Response(status=status.HTTP_200_OK)
        return Response({'status': 'OK'}, status=status.HTTP_201_CREATED)
      def get(self, request):
          return range(0, self.total)
  
      def post(self, request):
        return Response({'status': 'OK'}, status=status.HTTP_201_CREATED)
  
  
  class TestPagination(TestCase):
      def setUp(self):
          self.req = RequestFactory()
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/mixins.py