This commit is contained in:
Andy McKay 2012-11-08 15:43:47 -08:00
Родитель bb8f9bdf83
Коммит 41c0e83fc5
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1417,10 +1417,12 @@ class TestUpload(BaseUploadTest):
eq_(FileUpload.objects.get().user, user)
def test_fileupload_ascii_post(self):
path = u'apps/files/fixtures/files/jétpack.xpi'
path = u'apps/files/fixtures/files/jetpack.xpi'
data = storage.open(os.path.join(settings.ROOT, path))
replaced = path.replace('e', u'é')
r = self.client.post(self.url, {'upload':
SimpleUploadedFile(path, data.read())})
SimpleUploadedFile(replaced,
data.read())})
# If this is broke, we'll get a traceback.
eq_(r.status_code, 302)