  from django.test import Client, TestCase
  
  from django.utils import simplejson as json
  
  from djangorestframework.compat import RequestFactory
  from djangorestframework.views import View
  from djangorestframework import permissions
  
  import base64
  
 
</s> remove         return {'a':1, 'b':2, 'c':3}
 </s> add         return {'a': 1, 'b': 2, 'c': 3}

    def put(self, request):
        return {'a': 1, 'b': 2, 'c': 3} </s> remove from django.contrib.auth import login
 </s> add 
  from django.test import Client, TestCase
  
  from django.utils import simplejson as json
  

  from djangorestframework.views import View
  from djangorestframework import permissions
  
  import base64
  
keep keep keep keep replace keep keep keep keep keep
 Add test for PUT with session auth+csrf 
djangorestframework/tests/authentication.py