  from rest_framework.authtoken.models import Token
  from rest_framework.authentication import TokenAuthentication
  
  import base64
  
  
  class MockView(APIView):
 
</s> remove from rest_framework.views import APIView
 </s> add  </s> remove from django.http import HttpResponse
 </s> add  </s> remove from django.test.client import RequestFactory
 </s> add 
from rest_framework.compat import patterns
from rest_framework.views import APIView
  from rest_framework.authtoken.models import Token
  from rest_framework.authentication import TokenAuthentication
from rest_framework.compat import patterns
from rest_framework.views import APIView
  
  import base64
  
  
  class MockView(APIView):
keep add keep 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