Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Public Attributes
test.test_imaplib.RemoteIMAP_SSLTest Class Reference
Inheritance diagram for test.test_imaplib.RemoteIMAP_SSLTest:
Inheritance graph
[legend]
Collaboration diagram for test.test_imaplib.RemoteIMAP_SSLTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def test_logincapa
def setUp
def tearDown
def test_logout

Public Attributes

 server

Static Public Attributes

int port = 993
 imap_class = IMAP4_SSL
string host = 'cyrus.andrew.cmu.edu'
string username = 'anonymous'
string password = 'pass'

Detailed Description

Definition at line 257 of file test_imaplib.py.


Member Function Documentation

def test.test_imaplib.RemoteIMAPTest.setUp (   self) [inherited]

Reimplemented in test.test_imaplib.RemoteIMAP_STARTTLSTest.

Definition at line 216 of file test_imaplib.py.

00216 
00217     def setUp(self):
00218         with transient_internet(self.host):
00219             self.server = self.imap_class(self.host, self.port)

Here is the call graph for this function:

Here is the caller graph for this function:

def test.test_imaplib.RemoteIMAPTest.tearDown (   self) [inherited]

Definition at line 220 of file test_imaplib.py.

00220 
00221     def tearDown(self):
00222         if self.server is not None:
00223             with transient_internet(self.host):
00224                 self.server.logout()

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from test.test_imaplib.RemoteIMAPTest.

Definition at line 261 of file test_imaplib.py.

00261 
00262     def test_logincapa(self):
00263         for cap in self.server.capabilities:
00264             self.assertIsInstance(cap, str)
00265         self.assertFalse('LOGINDISABLED' in self.server.capabilities)
00266         self.assertTrue('AUTH=PLAIN' in self.server.capabilities)
00267 

Here is the call graph for this function:

Definition at line 234 of file test_imaplib.py.

00234 
00235     def test_logout(self):
00236         with transient_internet(self.host):
00237             rs = self.server.logout()
00238             self.server = None
00239             self.assertEqual(rs[0], 'BYE')
00240 
00241 
@unittest.skipUnless(ssl, "SSL not available")

Here is the call graph for this function:


Member Data Documentation

string test.test_imaplib.RemoteIMAPTest.host = 'cyrus.andrew.cmu.edu' [static, inherited]

Definition at line 210 of file test_imaplib.py.

Reimplemented from test.test_imaplib.RemoteIMAPTest.

Definition at line 259 of file test_imaplib.py.

string test.test_imaplib.RemoteIMAPTest.password = 'pass' [static, inherited]

Definition at line 213 of file test_imaplib.py.

Reimplemented from test.test_imaplib.RemoteIMAPTest.

Definition at line 258 of file test_imaplib.py.

Definition at line 218 of file test_imaplib.py.

string test.test_imaplib.RemoteIMAPTest.username = 'anonymous' [static, inherited]

Definition at line 212 of file test_imaplib.py.


The documentation for this class was generated from the following file: