twisted.test.test_ftp.IReadWriteTestsMixin class documentationtwisted.test.test_ftp
(View In Hierarchy)
Known subclasses: twisted.test.test_ftp.FTPReadWriteTests
Generic tests for the IReadFile and IWriteFile
interfaces.
| Method | getFileReader | Return an object providing IReadFile, ready to send datacontent. | 
| Method | getFileWriter | Return an object providing IWriteFile, ready to receive 
data. | 
| Method | getFileContent | Return the content of the file used. | 
| Method | test_read | Test ftp.IReadFile:
the implementation should have a send method returning aDeferredwhich fires when all the data has been sent to the 
consumer, and the data should be correctly send to the consumer. | 
| Method | test_write | No summary | 
Return an object providing IReadFile, ready to send data 
content.
| Parameters | content | data to send | 
Return an object providing IWriteFile, ready to receive 
data.
Return the content of the file used.
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.