          ])
          return '<MockObject %s>' % kwargs_str
  
  
  class MockQueryset(object):
      def __init__(self, iterable):
          self.items = iterable
  
      def __getitem__(self, val):
          return self.items[val]
 
</s> remove         class MockQueryset(object):
 </s> add         class MockQueryset: </s> remove         class MockQuerySet(object):
 </s> add         class MockQuerySet: </s> remove class MockApiSettings(object):
 </s> add class MockApiSettings: </s> remove         super(TestHyperlinkedRelatedField, self).setUp()
 </s> add         super().setUp() </s> remove         return unicode_to_repr(
            '%s(%s)' % (self.__class__.__name__, unicode_repr(self.default))
        )
 </s> add         return '%s(%s)' % (self.__class__.__name__, repr(self.default))
class MockQueryset:
          ])
          return '<MockObject %s>' % kwargs_str
  
  
class MockQueryset:
      def __init__(self, iterable):
          self.items = iterable
  
      def __getitem__(self, val):
          return self.items[val]
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/utils.py