mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
committed by
Tim Graham
parent
84b0a8d2aa
commit
b1e33ceced
@@ -156,14 +156,18 @@ class FileUploadTests(TestCase):
|
||||
(#22971).
|
||||
"""
|
||||
payload = client.FakePayload()
|
||||
payload.write('\r\n'.join([
|
||||
'--' + client.BOUNDARY,
|
||||
'Content-Disposition: form-data; name*=UTF-8\'\'file_unicode; filename*=UTF-8\'\'%s' % urlquote(UNICODE_FILENAME),
|
||||
'Content-Type: application/octet-stream',
|
||||
'',
|
||||
'You got pwnd.\r\n',
|
||||
'\r\n--' + client.BOUNDARY + '--\r\n'
|
||||
]))
|
||||
payload.write(
|
||||
'\r\n'.join([
|
||||
'--' + client.BOUNDARY,
|
||||
'Content-Disposition: form-data; name*=UTF-8\'\'file_unicode; filename*=UTF-8\'\'%s' % urlquote(
|
||||
UNICODE_FILENAME
|
||||
),
|
||||
'Content-Type: application/octet-stream',
|
||||
'',
|
||||
'You got pwnd.\r\n',
|
||||
'\r\n--' + client.BOUNDARY + '--\r\n'
|
||||
])
|
||||
)
|
||||
|
||||
r = {
|
||||
'CONTENT_LENGTH': len(payload),
|
||||
|
||||
Reference in New Issue
Block a user