twisted.python.test.test_zipstream.FileEntryMixin(object)
class documentationtwisted.python.test.test_zipstream
(View In Hierarchy)
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. |
readline()
should mirror file.readline
and return up to a single delimiter.