'Iterating over L{_InputStream} after calling L{_InputStream.read}
produces lines from the input stream starting from the first byte after
the last byte returned by the C{read} call.'

def test_iterableAfterRead(self):

    bytes = 'green    eggs\nand    ham\n'
    def iterate(input):
        input.read(3)
        return list(input)
    d = self._renderAndReturnReaderResult(iterate, bytes)
    d.addCallback(self.assertEqual, ['en    eggs\n', 'and    ham\n'])
    return d
