  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  from rest_framework.compat import oauth2_provider_scope, oauth2_constants, guardian
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
 
</s> remove from rest_framework.settings import api_settings
 </s> add  </s> remove from django.contrib.auth.models import User, Permission
 </s> add from django.contrib.auth.models import User, Permission, Group </s> remove             # create users
            User.objects.create_user('no_permission', 'no_permission@example.com', 'password')
            reader = User.objects.create_user('reader', 'reader@example.com', 'password')
            writer = User.objects.create_user('writer', 'writer@example.com', 'password')
            full_access = User.objects.create_user('full_access', 'full_access@example.com', 'password')
            
            model = BasicPermModel.objects.create(text='foo')
 </s> add             perms = self.perms
            users = self.users
from django.http import Http404
  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
from django.http import Http404
  from rest_framework.compat import oauth2_provider_scope, oauth2_constants, guardian
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
keep keep add keep keep keep keep keep keep
 first pass at object level permissions and tests 
rest_framework/permissions.py