  MockView.authentication_classes += (TokenAuthentication,)
  
  urlpatterns = patterns('',
      (r'^$', MockView.as_view()),
      (r'^auth-token/', include('rest_framework.authtoken.urls')),
  )
  
  
  class BasicAuthTests(TestCase):
      """Basic authentication"""
 
</s> remove class AuthTokenView(APIView):
 </s> add class ObtainAuthToken(APIView):
    (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'),
  MockView.authentication_classes += (TokenAuthentication,)
  
  urlpatterns = patterns('',
      (r'^$', MockView.as_view()),
    (r'^auth-token/', 'rest_framework.authtoken.views.obtain_auth_token'),
  )
  
  
  class BasicAuthTests(TestCase):
      """Basic authentication"""
keep keep keep keep replace keep keep keep keep keep
 Renamed AuthTokenView to ObtainAuthToken, added obtain_auth_token var, updated tests & docs. Left authtoken.urls in place as example. 
rest_framework/tests/authentication.py