Known subclasses: twisted.python.test.test_zipstream.DeflatedZipFileEntryTests, twisted.python.test.test_zipstream.ZipFileEntryTests

File entry classes should behave as file-like objects

Method getFileEntry Return an appropriate zip file entry
Method test_isatty zip files should not be ttys, so isatty() should be false
Method test_closed The closed attribute should reflect whether close() has been called.
Method test_readline readline() should mirror file.readline and return up to a single delimiter.
Method test_next Zip file entries should implement the iterator protocol as files do.
Method test_readlines readlines() should return a list of all the lines.
Method test_iteration __iter__() and xreadlines() should return self.
Method test_readWhole .read() should read the entire file.
Method test_readPartial .read(num) should read num bytes from the file.
Method test_tell .tell() should return the number of bytes that have been read so far.
def getFileEntry(self, contents):

Return an appropriate zip file entry

def test_isatty(self):

zip files should not be ttys, so isatty() should be false

def test_closed(self):

The closed attribute should reflect whether close() has been called.

def test_readline(self):

readline() should mirror file.readline and return up to a single delimiter.

def test_next(self):

Zip file entries should implement the iterator protocol as files do.

def test_readlines(self):

readlines() should return a list of all the lines.

def test_iteration(self):

__iter__() and xreadlines() should return self.

def test_readWhole(self):

.read() should read the entire file.

def test_readPartial(self):

.read(num) should read num bytes from the file.

def test_tell(self):

.tell() should return the number of bytes that have been read so far.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.