mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
[1.7.x] Fixed a static view test on Windows.
Backport of a6f144fd4f
from master
This commit is contained in:
parent
2e2617991a
commit
02c059ff7f
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ class StaticTests(SimpleTestCase):
|
|||
first_chunk = next(response.streaming_content)
|
||||
self.assertEqual(len(first_chunk), STREAM_CHUNK_SIZE)
|
||||
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):
|
||||
response = self.client.get('/%s/file.unknown' % self.prefix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue