def test_file_iteration(self):
        file = File(BytesIO(b'one\ntwo\nthree'))
        self.assertEqual(list(file), [b'one\n', b'two\n', b'three'])
File objects should yield lines when iterated over.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/files/tests.py/FileTests.test_file_iteration