def test_iterable(self):
        """
        Iterating over L{_InputStream} produces lines from the input stream.
        """
        bytes = b"green eggs\nand ham\n"
        d = self._renderAndReturnReaderResult(lambda input: list(input), bytes)
        d.addCallback(self.assertEqual, [b"green eggs\n", b"and ham\n"])
        return d

        Iterating over L{_InputStream} produces lines from the input stream.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_wsgi.py