'Calling L{_InputStream.readlines} with an integer which is greater than
the total number of bytes in the input stream returns a list of all
lines from the input.'

def test_readlinesMoreThan(self):

    bytes = 'one    potato\ntwo    potato\nthree    potato'
    d = self._renderAndReturnReaderResult((lambda input: input.readlines(100)), bytes)
    d.addCallback(self.assertEqual, ['one    potato\n', 'two    potato\n', 'three    potato'])
    return d
