  from __future__ import unicode_literals
  from django.contrib.auth.models import User, Permission
  from django.db import models
  from django.test import TestCase
  from rest_framework import generics, status, permissions, authentication, HTTP_HEADER_ENCODING
  from rest_framework.compat import guardian
  from rest_framework.test import APIRequestFactory
 
</s> remove from rest_framework.settings import api_settings
 </s> add  </s> remove             # assign permissions appropriately
            from guardian.shortcuts import assign_perm
 </s> add             # appropriate object level permissions
            readers = Group.objects.create(name='readers')
            writers = Group.objects.create(name='writers')
            deleters = Group.objects.create(name='deleters')
from django.contrib.auth.models import User, Permission, Group
  from __future__ import unicode_literals
from django.contrib.auth.models import User, Permission, Group
  from django.db import models
  from django.test import TestCase
  from rest_framework import generics, status, permissions, authentication, HTTP_HEADER_ENCODING
  from rest_framework.compat import guardian
  from rest_framework.test import APIRequestFactory
keep replace keep keep keep keep keep
 first pass at object level permissions and tests 
rest_framework/tests/test_permissions.py