'Regression test for #8156: files with unicode names I can\'t quite figure
out the encoding situation between doctest and this file, but the actual
repr doesn\'t matter; it just shouldn\'t return a unicode object.'

def test_unicode_file_names(self):

    uf = UploadedFile(name=u'\xbfC\xf3mo?', content_type=u'text')
    self.assertEqual(type(uf.__repr__()), str)
