  from django.contrib.auth.models import User
  from django.test import Client, TestCase
  from django.utils import simplejson as json
  
  from rest_framework import permissions
 
</s> remove from django.http import HttpResponse
 </s> add  </s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from django.conf.urls.defaults import patterns
 </s> add  </s> remove from rest_framework.views import APIView
 </s> add 
from django.http import HttpResponse
  from django.contrib.auth.models import User
from django.http import HttpResponse
  from django.test import Client, TestCase
  from django.utils import simplejson as json
  
  from rest_framework import permissions
add keep keep keep keep
 urls, patterns, include imports move to compat to support incoming 1.3 thru 1.6 import compatability 
rest_framework/tests/authentication.py