'Calling L{_InputStream.readline} with an integer returns at most that
many bytes, even if it is not enough to make up a complete line.
COMPATIBILITY NOTE: the size argument is excluded from the WSGI
specification, but is provided here anyhow, because useful libraries
such as python stdlib\'s cgi.py assume their input file-like-object
supports readline with a size argument. If you use it, be aware your
application may not be portable to other conformant WSGI servers.'

def test_readlineSome(self):

    bytes = 'goodbye\nworld'
    d = self._renderAndReturnReaderResult((lambda input: input.readline(3)), bytes)
    d.addCallback(self.assertEqual, 'goo')
    return d
