diff options
| author | Tim Graham <timograham@gmail.com> | 2015-01-14 13:46:15 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-01-14 13:56:49 -0500 |
| commit | a6f144fd4fee0090de3a99b1f50a4142722e7946 (patch) | |
| tree | 78a9051586dff4a93707ad91035c18a536105286 | |
| parent | 88786afbffc5c095f6491e080afea394f63bb44a (diff) | |
Fixed a static view test on Windows.
| -rw-r--r-- | tests/view_tests/tests/test_static.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/view_tests/tests/test_static.py b/tests/view_tests/tests/test_static.py index 0cf9091074..808c07d605 100644 --- a/tests/view_tests/tests/test_static.py +++ b/tests/view_tests/tests/test_static.py @@ -38,7 +38,8 @@ class StaticTests(SimpleTestCase): first_chunk = next(response.streaming_content) self.assertEqual(len(first_chunk), FileResponse.block_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) |
