  class MockView(View):
      permissions = (permissions.IsAuthenticated,)
  
      def post(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
      def put(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
  urlpatterns = patterns('',
 
</s> remove         return {'a': 1, 'b': 2, 'c': 3}
 </s> add         return HttpResponse({'a': 1, 'b': 2, 'c': 3}) </s> remove             return Response(status.HTTP_200_OK)
 </s> add             return Response(status=status.HTTP_200_OK) </s> remove         return Response(status.INTERNAL_SERVER_ERROR)
 </s> add         return Response(status=status.INTERNAL_SERVER_ERROR) </s> remove                 return {'a':1, 'b':2, 'c':3}
 </s> add                 return Response({'a':1, 'b':2, 'c':3}) </s> remove         return reverse('another')
 </s> add         return Response(reverse('another'))
        return HttpResponse({'a': 1, 'b': 2, 'c': 3})
  class MockView(View):
      permissions = (permissions.IsAuthenticated,)
  
      def post(self, request):
        return HttpResponse({'a': 1, 'b': 2, 'c': 3})
  
      def put(self, request):
          return {'a': 1, 'b': 2, 'c': 3}
  
  urlpatterns = patterns('',
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