mirror of
https://github.com/django/django.git
synced 2025-07-18 16:49:13 +00:00
[1.4.x] Fixed a static view test on Windows.
Backport of a6f144fd4fee0090de3a99b1f50a4142722e7946 from master
This commit is contained in:
parent
4296a1da8b
commit
99e6ac77f2
@ -41,7 +41,8 @@ class StaticTests(TestCase):
|
|||||||
first_chunk = iter(response).next()
|
first_chunk = iter(response).next()
|
||||||
self.assertEqual(len(first_chunk), STREAM_CHUNK_SIZE)
|
self.assertEqual(len(first_chunk), STREAM_CHUNK_SIZE)
|
||||||
second_chunk = response.next()
|
second_chunk = response.next()
|
||||||
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('/views/%s/file.unknown' % self.prefix)
|
response = self.client.get('/views/%s/file.unknown' % self.prefix)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user