'Calling L{_InputStream.readline} with an integer which is greater than
the number of bytes in the next line returns only the next line.'

def test_readlineMoreThan(self):

    bytes = 'some    lines\nof    text'
    d = self._renderAndReturnReaderResult((lambda input: input.readline(20)), bytes)
    d.addCallback(self.assertEqual, 'some    lines\n')
    return d
