  from rest_framework.routers import DefaultRouter
  from rest_framework.schemas import SchemaGenerator
  from rest_framework.test import APIClient
  from rest_framework.viewsets import ModelViewSet
  
  
  class MockUser(object):
      def is_authenticated(self):
 
</s>
from rest_framework.views import APIView
  from rest_framework.routers import DefaultRouter
  from rest_framework.schemas import SchemaGenerator
  from rest_framework.test import APIClient
from rest_framework.views import APIView
  from rest_framework.viewsets import ModelViewSet
  
  
  class MockUser(object):
      def is_authenticated(self):
keep keep add keep keep keep keep keep
 Fix schema generation for APIView, since it does not have get_serializer_class method. (#4285)
tests/test_schemas.py