Commit a6f144fd authored by Tim Graham's avatar Tim Graham
Browse files

Fixed a static view test on Windows.

parent 88786afb
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)