  object_permissions_list_view = ObjectPermissionListView.as_view()
  
  
  @unittest.skipUnless(guardian, 'django-guardian not installed')
  class ObjectPermissionsIntegrationTests(TestCase):
      """
      Integration tests for the object level permissions API.
      """
      def setUp(self):
 
</s>
class GetQuerysetObjectPermissionInstanceView(generics.RetrieveUpdateDestroyAPIView):
    serializer_class = BasicPermSerializer
    authentication_classes = [authentication.BasicAuthentication]
    permission_classes = [ViewObjectPermissions]

    def get_queryset(self):
        return BasicPermModel.objects.all()


get_queryset_object_permissions_view = GetQuerysetObjectPermissionInstanceView.as_view()


  object_permissions_list_view = ObjectPermissionListView.as_view()
  
  
class GetQuerysetObjectPermissionInstanceView(generics.RetrieveUpdateDestroyAPIView):
    serializer_class = BasicPermSerializer
    authentication_classes = [authentication.BasicAuthentication]
    permission_classes = [ViewObjectPermissions]

    def get_queryset(self):
        return BasicPermModel.objects.all()


get_queryset_object_permissions_view = GetQuerysetObjectPermissionInstanceView.as_view()


  @unittest.skipUnless(guardian, 'django-guardian not installed')
  class ObjectPermissionsIntegrationTests(TestCase):
      """
      Integration tests for the object level permissions API.
      """
      def setUp(self):
keep keep add keep keep keep keep keep keep
 Allow DjangoObjectPermissions to use views that define get_queryset
tests/test_permissions.py