summaryrefslogtreecommitdiff
path: root/tests/file_uploads
diff options
context:
space:
mode:
authorDražen Odobašić <dodobas@candela-it.com>2015-09-11 19:33:12 -0400
committerTim Graham <timograham@gmail.com>2015-09-12 11:40:50 -0400
commitb1e33ceceda1e75ff68c7deed8f6659683a195d3 (patch)
treee4e446f69194f2dc3c9c7ee3ecf48290ea8d4d31 /tests/file_uploads
parent84b0a8d2aad042fb573df5055b6153770d0929ac (diff)
Fixed #23395 -- Limited line lengths to 119 characters.
Diffstat (limited to 'tests/file_uploads')
-rw-r--r--tests/file_uploads/tests.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py
index 2fe1499738..1d0d0ffee1 100644
--- a/tests/file_uploads/tests.py
+++ b/tests/file_uploads/tests.py
@@ -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),