class documentation
class IReadWriteTestsMixin: (source)
Known subclasses: twisted.test.test_ftp.FTPReadWriteTests
Generic tests for the IReadFile and IWriteFile interfaces.
Method | get |
Return the content of the file used. |
Method | get |
Return an object providing IReadFile, ready to send data content. |
Method | get |
Return an object providing IWriteFile, ready to receive data. |
Method | test |
Test ftp.IReadFile : the implementation should have a send method returning a Deferred which fires when all the data has been sent to the consumer, and the data should be correctly send to the consumer. |
Method | test |
Test ftp.IWriteFile : the implementation should have a receive method returning a Deferred which fires with a consumer ready to receive data to be written. It should also have a close() method that returns a Deferred. |
overridden in
twisted.test.test_ftp.FTPReadWriteTests
Return an object providing IReadFile, ready to send data content.
Parameters | |
content | data to send |
overridden in
twisted.test.test_ftp.FTPReadWriteTests
Return an object providing IWriteFile, ready to receive data.
Test ftp.IReadFile
: the implementation should have a send method returning a Deferred which fires when all the data has been sent to the consumer, and the data should be correctly send to the consumer.
Test ftp.IWriteFile
: the implementation should have a receive method returning a Deferred which fires with a consumer ready to receive data to be written. It should also have a close() method that returns a Deferred.