def test_readlines(self):
        """
        Calling L{_InputStream.readlines} with no arguments returns a list of
        all lines from the input stream.
        """
        bytes = b"alice\nbob\ncarol"
        d = self._renderAndReturnReaderResult(
            lambda input: input.readlines(), bytes)
        d.addCallback(self.assertEqual, [b"alice\n", b"bob\n", b"carol"])
        return d

        Calling L{_InputStream.readlines} with no arguments returns a list of
        all lines from the input stream.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_wsgi.py