'Tests invoking FileInput.__getitem__() with the current
line number'

def test__getitem__(self):

    t = writeTmp(1, ['line1\n', 'line2\n'])
    self.addCleanup(remove_tempfiles, t)
    with FileInput(files=[t]) as fi:
        retval1 = fi[0]
        self.assertEqual(retval1, 'line1\n')
        retval2 = fi[1]
        self.assertEqual(retval2, 'line2\n')
