          representation = self.field.to_representation(self.instance)
          assert representation == '<MockObject name=foo, pk=1>'
  
  
  class MockApiSettings(object):
      def __init__(self, cutoff, cutoff_text):
          self.HTML_SELECT_CUTOFF = cutoff
          self.HTML_SELECT_CUTOFF_TEXT = cutoff_text
  
  
 
</s> remove             return six.text_type(obj.total_seconds())
 </s> add             return str(obj.total_seconds()) </s> remove class MockQueryset(object):
 </s> add class MockQueryset: </s> remove         instance = super(Field, cls).__new__(cls)
 </s> add         instance = super().__new__(cls) </s> remove         class DummyView(object):
 </s> add         class DummyView: </s> remove         assert response.content == six.b('')
 </s> add         assert response.content == b''
class MockApiSettings:
          representation = self.field.to_representation(self.instance)
          assert representation == '<MockObject name=foo, pk=1>'
  
  
class MockApiSettings:
      def __init__(self, cutoff, cutoff_text):
          self.HTML_SELECT_CUTOFF = cutoff
          self.HTML_SELECT_CUTOFF_TEXT = cutoff_text
  
  
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_relations.py