      def post(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
      def put(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
  urlpatterns = patterns('',
      (r'^$', MockView.as_view()),
  )
  
 
</s> remove         return {'a': 1, 'b': 2, 'c': 3}
 </s> add         return HttpResponse({'a': 1, 'b': 2, 'c': 3}) </s> remove         return Response(status.INTERNAL_SERVER_ERROR)
 </s> add         return Response(status=status.INTERNAL_SERVER_ERROR) </s> remove             return Response(status.HTTP_200_OK)
 </s> add             return Response(status=status.HTTP_200_OK) </s> remove         return reverse('another')
 </s> add         return Response(reverse('another')) </s> remove         return range(0, self.total)
 </s> add         return Response(range(0, self.total))
        return HttpResponse({'a': 1, 'b': 2, 'c': 3})
      def post(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
      def put(self, request):
        return HttpResponse({'a': 1, 'b': 2, 'c': 3})
  
  urlpatterns = patterns('',
      (r'^$', MockView.as_view()),
  )
  
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/authentication.py