  
  factory = APIRequestFactory()
  
  
  class MockUser(object):
      def is_authenticated(self):
          return True
  
  
  class ExamplePagination(pagination.PageNumberPagination):
 
</s> remove if sys.version_info[:2] >= (3, 4):
    JSON_ERROR = 'JSON parse error - Expecting value:'
else:
    JSON_ERROR = 'JSON parse error - No JSON object could be decoded'
 </s> add JSON_ERROR = 'JSON parse error - Expecting value:' </s> remove from django.utils import six
 </s> add  </s> remove         class MockUser(object):
 </s> add         class MockUser: </s> remove class ForcedAuthentication(object):
 </s> add class ForcedAuthentication: </s> remove         super(_UnvalidatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs)
class MockUser:
  
  factory = APIRequestFactory()
  
  
class MockUser:
      def is_authenticated(self):
          return True
  
  
  class ExamplePagination(pagination.PageNumberPagination):
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_schemas.py