I think Django includes it, tho. Have a look round some other tests - pretty sure we use it elsewhere.



On 26 Jun 2013, at 18:12, Igor Kalat <notifications@github.com> wrote:

> In rest_framework/tests/test_utils.py:
> 
> > +            'На берегу пустынных волн'
> > +            ' てすと'
> > +            'ｱｲｳｴｵｶｷｸｹｺｻｼｽｾｿﾀﾁﾂﾃ'
> > +        )
> > +        self.non_utf8_test_string = ('The quick brown fox jumps over the lazy '
> > +                                     'dog')
> > +
> > +    def test_for_ascii_support_in_remove_leading_indent(self):
> > +        if sys.version_info < (3, 0):
> > +            # only Python 2.x is affected, so we skip the test entirely
> > +            # if on Python 3.x
> > +            self.assertEqual(formatting._remove_leading_indent(
> > +                self.non_utf8_test_string), self.non_utf8_test_string)
> > +
> > +    def test_for_utf8_support_in_remove_leading_indent(self):
> > +        if sys.version_info < (3, 0):
> skipUnless has been introduced with Python 2.7, so it would break tests for Python 2.6.5, which is listed as supported by DRF.
> 
> —
> Reply to this email directly or view it on GitHub.