mirror of
https://github.com/django/django.git
synced 2025-03-09 17:02:43 +00:00
Fixed a static view test on Windows.
This commit is contained in:
parent
88786afbff
commit
a6f144fd4f
@ -38,7 +38,8 @@ class StaticTests(SimpleTestCase):
|
|||||||
first_chunk = next(response.streaming_content)
|
first_chunk = next(response.streaming_content)
|
||||||
self.assertEqual(len(first_chunk), FileResponse.block_size)
|
self.assertEqual(len(first_chunk), FileResponse.block_size)
|
||||||
second_chunk = next(response.streaming_content)
|
second_chunk = next(response.streaming_content)
|
||||||
self.assertEqual(len(second_chunk), 1451)
|
# strip() to prevent OS line endings from causing differences
|
||||||
|
self.assertEqual(len(second_chunk.strip()), 1449)
|
||||||
|
|
||||||
def test_unknown_mime_type(self):
|
def test_unknown_mime_type(self):
|
||||||
response = self.client.get('/%s/file.unknown' % self.prefix)
|
response = self.client.get('/%s/file.unknown' % self.prefix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user