module documentation

FTP tests.

Class AnonymousFTPShellTests Test anonymous shell properties.
Class BaseFTPRealmTests Tests for ftp.BaseFTPRealm, a base class to help define IFTPShell realms with different user home directory policies.
Class BasicFTPServerTests Basic functionality of FTP server.
Class CloseTestShell Close writing shell.
Class CloseTestWriter Close writing to a file.
Class DTPFactoryTests Tests for ftp.DTPFactory.
Class DTPTests Tests for ftp.DTP.
Class Dummy Undocumented
Class ErrnoToFailureTests Tests for ftp.errnoToFailure errno checking.
Class FTPAnonymousTests Simple tests for an FTP server with different anonymous username. The new anonymous username used in this test case is "guest"
Class FTPClientBasicTests FTP client
Class FTPClientFailedRETRAndErrbacksUponDisconnectTests FTP client fails and RETR fails and disconnects.
Class FTPClientTests Test advanced FTP client commands.
Class FTPCloseTests Tests that the server invokes IWriteFile.close
Class FTPFileListingTests No class docstring; 6/7 methods documented
Class FTPReadWriteTests Tests for ftp._FileReader and ftp._FileWriter, the objects returned by the shell in openForReading/openForWriting.
Class FTPRealmTests Tests for ftp.FTPRealm.
Class FTPResponseCodeTests Tests relating directly to response codes.
Class FTPServerAdvancedClientTests Test FTP server with the ftp.FTPClient class.
Class FTPServerEprtDataConnectionTests Test the EPRT command.
Class FTPServerEpsvDataConnectionTests EPSV data connection.
Class FTPServerIPv4MappedPasvDataConnectionTests The PASV command doesn't work for IPv6 connections (that's why EPSV was invented). However, it's possible to use it from an IPv4 client connecting to a dual-stack server using IPv4-mapped addresses, if the system's IPv6 stack supports that.
Class FTPServerPasvDataConnectionTests PASV data connection.
Class FTPServerPortDataConnectionTests Test the PORT command.
Class FTPServerTestCase Simple tests for an FTP server with the default settings.
Class FTPShellTests Tests for the ftp.FTPShell object.
Class IFTPShellTestsMixin Generic tests for the IFTPShell interface.
Class IReadWriteTestsMixin Generic tests for the IReadFile and IWriteFile interfaces.
Class IsGlobbingExpressionTests Tests for _isGlobbingExpression utility function.
Class MyFTPFileListProtocol Undocumented
Class PathHandlingTests Handling paths.
Class PrintLines Helper class used by FTPFileListingTests.
Class SystemFTPRealmTests Tests for ftp.SystemFTPRealm.
Class TestConsumer A simple consumer for tests. It only works with non-streaming producers.
Class TestProducer A dumb producer.
Function passivemode_msg Construct a passive mode message with the correct encoding
Function skipWithoutIPv4MappedAddresses Undocumented
Constant HAS_IPV4_MAPPED_ADDRESSES Undocumented
Variable nonPOSIXSkip Undocumented
Class _BufferingProtocol Undocumented
Function _hasIPv4MappedAddresses Returns True if the system supports IPv4-mapped IPv6 addresses.
def passivemode_msg(protocol, host='127.0.0.1', port=12345):

Construct a passive mode message with the correct encoding

Parameters
protocolthe FTP protocol from which to base the encoding
hostthe hostname
portthe port
Returns
the passive mode message
def skipWithoutIPv4MappedAddresses(f):

Undocumented

HAS_IPV4_MAPPED_ADDRESSES =

Undocumented

Value
_hasIPv4MappedAddresses()
nonPOSIXSkip =

Undocumented

def _hasIPv4MappedAddresses():

Returns True if the system supports IPv4-mapped IPv6 addresses.