mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Refs #16470 -- Fixed typo in a FileResponse test.
This commit is contained in:
		
							parent
							
								
									cc79c7ee63
								
							
						
					
					
						commit
						ee52044a27
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue