def test_next(self):
        """
        Zip file entries should implement the iterator protocol as files do.
        """
        with self.getFileEntry(b'ho\nhoho') as fileEntry:
            self.assertEqual(fileEntry.next(), b'ho\n')
            self.assertEqual(fileEntry.next(), b'hoho')
            self.assertRaises(StopIteration, fileEntry.next)

        Zip file entries should implement the iterator protocol as files do.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_zipstream.py