Beispiel #1
0
 def test_unicode_file_names(self):
     """
     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.
     """
     uf = UploadedFile(name=u'¿Cómo?',content_type='text')
     self.assertEqual(type(uf.__repr__()), str)
Beispiel #2
0
 def test_unicode_file_names(self):
     """
     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.
     """
     uf = UploadedFile(name=u'¿Cómo?', content_type='text')
     self.assertEqual(type(uf.__repr__()), str)