      OAuth2Authentication
  )
  from rest_framework.authtoken.models import Token
  from rest_framework.compat import patterns, url, include
  from rest_framework.compat import oauth2_provider
  from rest_framework.compat import oauth, oauth_provider
  from rest_framework.test import APIRequestFactory, APIClient
  from rest_framework.views import APIView
  import base64
  import time
 
</s> remove from rest_framework.compat import (get_model_name, oauth2_provider)
 </s> add from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants) </s> remove         read_write_access_token.scope = oauth2_provider.scope.SCOPE_NAME_DICT['write']
 </s> add         read_write_access_token.scope = oauth2_provider_scope.SCOPE_NAME_DICT['write'] </s> remove         read_only_access_token.scope = oauth2_provider.scope.SCOPE_NAME_DICT['read']
 </s> add         read_only_access_token.scope = oauth2_provider_scope.SCOPE_NAME_DICT['read']
from rest_framework.compat import oauth2_provider, oauth2_provider_scope
      OAuth2Authentication
  )
  from rest_framework.authtoken.models import Token
  from rest_framework.compat import patterns, url, include
from rest_framework.compat import oauth2_provider, oauth2_provider_scope
  from rest_framework.compat import oauth, oauth_provider
  from rest_framework.test import APIRequestFactory, APIClient
  from rest_framework.views import APIView
  import base64
  import time
keep keep keep keep replace keep keep keep keep keep
 it's safe to import scope and constants 
rest_framework/tests/test_authentication.py