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 data content.
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 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_write No summary
def getFileReader(self, content):

Return an object providing IReadFile, ready to send data content.

Parameterscontentdata to send
def getFileWriter(self):

Return an object providing IWriteFile, ready to receive data.

def getFileContent(self):

Return the content of the file used.

def test_read(self):

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.

def test_write(self):

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.

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