          MockView.as_view(
              authentication_classes=[OAuthAuthentication],
              permission_classes=[permissions.TokenHasReadWriteScope]
          )
      )
  )
  
  
  class OAuth2AuthenticationDebug(OAuth2Authentication):
      allow_query_params_token = True
 
</s> remove         url(r'^auth', include('rest_framework.urls', namespace='rest_framework'))
 </s> add         url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
    ),
    url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
          MockView.as_view(
              authentication_classes=[OAuthAuthentication],
              permission_classes=[permissions.TokenHasReadWriteScope]
          )
    ),
    url(r'^auth/', include('rest_framework.urls', namespace='rest_framework'))
  )
  
  
  class OAuth2AuthenticationDebug(OAuth2Authentication):
      allow_query_params_token = True
keep keep keep keep replace keep keep keep keep keep
 Regression for #1810: Test login view renders 
tests/test_authentication.py