'Tests invoking FileInput.__getitem__() with the line number but at
end-of-input'

def test__getitem__eof(self):

    t = writeTmp(1, [])
    self.addCleanup(remove_tempfiles, t)
    with FileInput(files=[t]) as fi:
        with self.assertRaises(IndexError) as cm:
            fi[0]
    self.assertEqual(cm.exception.args, ('end    of    input    reached',))
