  from django.conf.urls.defaults import patterns
  from django.contrib.auth.models import User
  from django.contrib.auth import login
  from django.test import Client, TestCase
  
  from django.utils import simplejson as json
  
  from djangorestframework.compat import RequestFactory
 
</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 djangorestframework.compat import RequestFactory
 </s> add 
  from django.conf.urls.defaults import patterns
  from django.contrib.auth.models import User

  from django.test import Client, TestCase
  
  from django.utils import simplejson as json
  
  from djangorestframework.compat import RequestFactory
keep keep replace keep keep keep keep keep
 Add test for PUT with session auth+csrf 
djangorestframework/tests/authentication.py