This is a pointless test anyway.
Python has its own unit test suite, we don't need to test that `open()` can open filenames with unicode characters.
This commit is contained in:
Родитель
8b3e08d499
Коммит
1fbfa6b916
|
@ -2425,14 +2425,6 @@ class TestUpload(BaseUploadTest):
|
|||
user = UserProfile.objects.get(email='regular@mozilla.com')
|
||||
eq_(FileUpload.objects.get().user, user)
|
||||
|
||||
def test_fileupload_ascii_post(self):
|
||||
path = 'apps/files/fixtures/files/jétpack.xpi'
|
||||
data = open(os.path.join(settings.ROOT, path))
|
||||
|
||||
r = self.client.post(self.url, {'upload': data})
|
||||
# If this is broke, we'll get a traceback.
|
||||
eq_(r.status_code, 302)
|
||||
|
||||
@attr('validator')
|
||||
def test_fileupload_validation(self):
|
||||
self.post()
|
||||
|
|
Загрузка…
Ссылка в новой задаче