  class MockPaginatorView(PaginatorMixin, View):
      total = 60
  
      def get(self, request):
          return range(0, self.total)
  
      def post(self, request):
          return Response(status.HTTP_201_CREATED, {'status': 'OK'})
  
  
 
</s> remove         return Response(status.HTTP_201_CREATED, {'status': 'OK'})
 </s> add         return Response({'status': 'OK'}, status=status.HTTP_201_CREATED) </s> remove         self.assertEquals(2, response.cleaned_content.groups.count())
        self.assertEquals('foo1', response.cleaned_content.groups.all()[0].name)
        self.assertEquals('foo2', response.cleaned_content.groups.all()[1].name)
 </s> add         self.assertEquals(2, response.raw_content.groups.count())
        self.assertEquals('foo1', response.raw_content.groups.all()[0].name)
        self.assertEquals('foo2', response.raw_content.groups.all()[1].name) </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(range(0, self.total))
  class MockPaginatorView(PaginatorMixin, View):
      total = 60
  
      def get(self, request):
        return Response(range(0, self.total))
  
      def post(self, request):
          return Response(status.HTTP_201_CREATED, {'status': 'OK'})
  
  
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