      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
      permissions = ()
  
      def get(self, request):
          return reverse('another')
  
  urlpatterns = patterns('',
      url(r'^$', MockView.as_view()),
      url(r'^another$', MockView.as_view(), name='another'),
  )
 
</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 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(reverse('another'))
      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
      permissions = ()
  
      def get(self, request):
        return Response(reverse('another'))
  
  urlpatterns = patterns('',
      url(r'^$', MockView.as_view()),
      url(r'^another$', MockView.as_view(), name='another'),
  )
keep keep keep keep replace keep keep keep keep keep
 Response as a subclass of HttpResponse - first draft, not quite there yet. 
djangorestframework/tests/reverse.py