'File objects should yield lines when iterated over.
Refs #22107.'

def test_file_iteration(self):

    file = File(BytesIO('one\ntwo\nthree'))
    self.assertEqual(list(file), ['one\n', 'two\n', 'three'])
