  from django.core.exceptions import ObjectDoesNotExist
  from django.urls import NoReverseMatch
  
  
  class MockObject(object):
      def __init__(self, **kwargs):
          self._kwargs = kwargs
          for key, val in kwargs.items():
              setattr(self, key, val)
  
 
</s> remove from django.utils import six
 </s> add  </s> remove     class MockOriginalResponse(object):
 </s> add     class MockOriginalResponse: </s> remove             key = six.text_type(key)
 </s> add             key = str(key) </s> remove from __future__ import unicode_literals

 </s> add  </s> remove from django.utils.six.moves.urllib import parse as urlparse
 </s> add 
class MockObject:
  from django.core.exceptions import ObjectDoesNotExist
  from django.urls import NoReverseMatch
  
  
class MockObject:
      def __init__(self, **kwargs):
          self._kwargs = kwargs
          for key, val in kwargs.items():
              setattr(self, key, 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