  
  
  class MockResource(Resource):
      """Mock resource which simply returns a URL, so that we can ensure that reversed URLs are fully qualified"""
      anon_allowed_methods = ('GET',)
  
      def get(self, request):
          return reverse('another')
  
  urlpatterns = patterns('',
 
</s> remove     allowed_methods = ('POST',)

 </s> add  </s> remove             anon_allowed_methods = allowed_methods = ('GET',)
 </s> add             permissions = ()
 </s> remove     # List of RESTful operations which may be performed on this resource.
    # These are going to get dropped at some point, the allowable methods will be defined simply by
    # which methods are present on the request (in the same way as Django's generic View)
    allowed_methods = ('GET',)
    anon_allowed_methods = ()
 </s> add     http_method_names = ['get', 'post', 'put', 'delete', 'head', 'options', 'trace', 'patch'] </s> remove             # Temporarily request.POST with .RAW_CONTENT, so that we use our more generic request parsing
            request._post = self.mixin.RAW_CONTENT
 </s> add             # Temporarily set request.POST to view.RAW_CONTENT,
            # so that we use our more generic request parsing,
            # in preference to Django's form-only request parsing.
            request._post = self.view.RAW_CONTENT </s> remove     """Use Djagno's built-in request session for authentication."""
 </s> add     """Use Django's built-in request session for authentication."""
    permissions = ()
  
  
  class MockResource(Resource):
      """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('',
keep keep keep keep replace keep keep keep keep keep
 Generic permissions added, allowed_methods and anon_allowed_methods now defunct, dispatch now mirrors View.dispatch more nicely 
djangorestframework/tests/reverse.py