          See: https://github.com/tomchristie/django-rest-framework/issues/1708
          """
          # use a mock object instead of gettext_lazy to ensure that we can't end
          # up with a test case string in our l10n catalog
          @python_2_unicode_compatible
          class MockLazyStr(object):
              def __init__(self, string):
                  self.s = string
              def __str__(self):
                  return self.s
 
</s> remove             __doc__ = MockLazyStr("a gettext string")
 </s> add             __doc__ = MockLazyStr(u"a gettext string") </s> remove         self.assertEqual(MockView().get_view_description(), 'a gettext string')
 </s> add         self.assertEqual(MockView().get_view_description(), u'a gettext string') </s> remove from django.utils.encoding import python_2_unicode_compatible
 </s> add 
          See: https://github.com/tomchristie/django-rest-framework/issues/1708
          """
          # use a mock object instead of gettext_lazy to ensure that we can't end
          # up with a test case string in our l10n catalog

          class MockLazyStr(object):
              def __init__(self, string):
                  self.s = string
              def __str__(self):
                  return self.s
keep keep keep keep replace keep keep keep keep keep
 remove dep on python_2_unicode_compatible

python_2_unicode_compatible is not available in all Django versions 
rest_framework/tests/test_description.py