Back to index

python3.2  3.2.2
Classes | Functions | Variables
test.test_ftplib Namespace Reference

Classes

class  DummyDTPHandler
class  DummyFTPHandler
class  DummyFTPServer
class  SSLConnection
class  DummyTLS_DTPHandler
class  DummyTLS_FTPHandler
class  DummyTLS_FTPServer
class  TestFTPClass
class  TestIPv6Environment
class  TestTLS_FTPClassMixin
class  TestTLS_FTPClass
class  TestTimeouts

Functions

def test_main

Variables

 ssl = None
tuple threading = support.import_module('threading')
string RETR_DATA = 'abcde12345\r\n'
string LIST_DATA = 'foo\r\nbar\r\n'
string NLST_DATA = 'foo\r\nbar\r\n'
tuple CERTFILE = os.path.join(os.path.dirname(__file__), "keycert.pem")

Detailed Description

Test script for ftplib module.

Function Documentation

Definition at line 858 of file test_ftplib.py.

00858 
00859 def test_main():
00860     tests = [TestFTPClass, TestTimeouts]
00861     if socket.has_ipv6:
00862         try:
00863             DummyFTPServer((HOST, 0), af=socket.AF_INET6)
00864         except socket.error:
00865             pass
00866         else:
00867             tests.append(TestIPv6Environment)
00868 
00869     if ssl is not None:
00870         tests.extend([TestTLS_FTPClassMixin, TestTLS_FTPClass])
00871 
00872     thread_info = support.threading_setup()
00873     try:
00874         support.run_unittest(*tests)
00875     finally:
00876         support.threading_cleanup(*thread_info)
00877 


Variable Documentation

tuple test.test_ftplib.CERTFILE = os.path.join(os.path.dirname(__file__), "keycert.pem")

Definition at line 268 of file test_ftplib.py.

Definition at line 27 of file test_ftplib.py.

Definition at line 28 of file test_ftplib.py.

Definition at line 26 of file test_ftplib.py.

Definition at line 17 of file test_ftplib.py.

Definition at line 22 of file test_ftplib.py.