mirror of
https://github.com/django/django.git
synced 2025-08-31 15:57:45 +00:00
Fixed #23395 -- Limited line lengths to 119 characters.
This commit is contained in:
parent
84b0a8d2aa
commit
b1e33ceced
130 changed files with 5259 additions and 1501 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue