  from django.utils import unittest
  from rest_framework import generics, serializers, status, permissions, authentication, HTTP_HEADER_ENCODING
  from rest_framework.compat import guardian, get_model_name
  from rest_framework.filters import DjangoObjectPermissionsFilter
  from rest_framework.routers import DefaultRouter
  from rest_framework.test import APIRequestFactory
  from tests.models import BasicModel
 
</s>
from django.core.urlresolvers import ResolverMatch
  from django.utils import unittest
  from rest_framework import generics, serializers, status, permissions, authentication, HTTP_HEADER_ENCODING
  from rest_framework.compat import guardian, get_model_name
from django.core.urlresolvers import ResolverMatch
  from rest_framework.filters import DjangoObjectPermissionsFilter
  from rest_framework.routers import DefaultRouter
  from rest_framework.test import APIRequestFactory
  from tests.models import BasicModel
keep keep add keep keep keep keep
 Allow DjangoObjectPermissions to use views that define get_queryset
tests/test_permissions.py