  
  class MockView(View):
      permissions = ( permissions.IsAuthenticated, )
      def post(self, request):
          return {'a':1, 'b':2, 'c':3}
  
  urlpatterns = patterns('',
      (r'^$', MockView.as_view()),
  )
  
 
</s> remove from djangorestframework.compat import RequestFactory
 </s> add  </s> remove from django.contrib.auth import login
 </s> add 
        return {'a': 1, 'b': 2, 'c': 3}

    def put(self, request):
        return {'a': 1, 'b': 2, 'c': 3}
  
  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('',
      (r'^$', MockView.as_view()),
  )
  
keep keep keep keep replace keep keep keep keep keep
 Add test for PUT with session auth+csrf 
djangorestframework/tests/authentication.py