Back to index

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

Classes

class  DummyPOP3Handler
class  DummyPOP3Server
class  TestPOP3Class
class  DummyPOP3_SSLHandler
class  TestPOP3_SSLClass
class  TestTimeouts

Functions

def test_main

Variables

tuple threading = test_support.import_module('threading')
 HOST = test_support.HOST
int PORT = 0
string LIST_RESP = '1 1\r\n2 2\r\n3 3\r\n4 4\r\n5 5\r\n.\r\n'
string RETR_RESP
 SUPPORTS_SSL = False
tuple CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert.pem")

Detailed Description

Test script for poplib module.

Function Documentation

Definition at line 359 of file test_poplib.py.

00359 
00360 def test_main():
00361     tests = [TestPOP3Class, TestTimeouts]
00362     if SUPPORTS_SSL:
00363         tests.append(TestPOP3_SSLClass)
00364     thread_info = test_support.threading_setup()
00365     try:
00366         test_support.run_unittest(*tests)
00367     finally:
00368         test_support.threading_cleanup(*thread_info)
00369 


Variable Documentation

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

Definition at line 237 of file test_poplib.py.

test.test_poplib.HOST = test_support.HOST

Definition at line 18 of file test_poplib.py.

string test.test_poplib.LIST_RESP = '1 1\r\n2 2\r\n3 3\r\n4 4\r\n5 5\r\n.\r\n'

Definition at line 22 of file test_poplib.py.

Definition at line 19 of file test_poplib.py.

Initial value:
00001 """From: postmaster@python.org\
00002 \r\nContent-Type: text/plain\r\n\
00003 MIME-Version: 1.0\r\n\
00004 Subject: Dummy\r\n\
00005 \r\n\
00006 line1\r\n\
00007 line2\r\n\
00008 line3\r\n\
00009 .\r\n"""

Definition at line 23 of file test_poplib.py.

Definition at line 232 of file test_poplib.py.

tuple test.test_poplib.threading = test_support.import_module('threading')

Definition at line 16 of file test_poplib.py.