[2.1.x] Refs #16470 -- Fixed typo in a FileResponse test.
Backport of ee52044a278885bd9455dd59b1e16c5d5e2d68ce from master.
This commit is contained in:
parent
d51ca1232e
commit
231c595bde
@ -34,7 +34,7 @@ class FileResponseTests(SimpleTestCase):
|
|||||||
response = FileResponse(os.fdopen(pipe_for_read, mode='rb'))
|
response = FileResponse(os.fdopen(pipe_for_read, mode='rb'))
|
||||||
self.assertEqual(list(response), [b'binary content'])
|
self.assertEqual(list(response), [b'binary content'])
|
||||||
response.close()
|
response.close()
|
||||||
self.assertFalse(response.has_header('Ĉontent-Length'))
|
self.assertFalse(response.has_header('Content-Length'))
|
||||||
|
|
||||||
def test_file_from_disk_as_attachment(self):
|
def test_file_from_disk_as_attachment(self):
|
||||||
response = FileResponse(open(__file__, 'rb'), as_attachment=True)
|
response = FileResponse(open(__file__, 'rb'), as_attachment=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user