  except ImportError:
      import simplejson as json
  
  class MockResource(Resource):
      allowed_methods = ('POST',)
  
      def post(self, request):
          return {'a':1, 'b':2, 'c':3}
  
  urlpatterns = patterns('',
      (r'^$', MockResource.as_view()),
 
</s> remove             anon_allowed_methods = allowed_methods = ('GET',)
 </s> add             permissions = ()
 </s> remove             allowed_methods = anon_allowed_methods = ('POST',)
 </s> add             permissions = () </s> remove     anon_allowed_methods = ('GET',)
 </s> add     permissions = () </s> remove         self.mixin = mixin
 </s> add         self.view = view </s> remove     def __init__(self, mixin):
 </s> add     def __init__(self, view):
  except ImportError:
      import simplejson as json
  
  class MockResource(Resource):


      def post(self, request):
          return {'a':1, 'b':2, 'c':3}
  
  urlpatterns = patterns('',
      (r'^$', MockResource.as_view()),
keep keep keep keep replace 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/authentication.py