Back to index

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

List of all members.

Public Member Functions

def setUp
def tearDown
def test_logincapa
def test_logout

Public Attributes

 server

Static Public Attributes

string host = 'cyrus.andrew.cmu.edu'
int port = 143
string username = 'anonymous'
string password = 'pass'
 imap_class = imaplib.IMAP4

Detailed Description

Definition at line 209 of file test_imaplib.py.


Member Function Documentation

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:

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 in test.test_imaplib.RemoteIMAP_SSLTest, and test.test_imaplib.RemoteIMAP_STARTTLSTest.

Definition at line 225 of file test_imaplib.py.

00225 
00226     def test_logincapa(self):
00227         with transient_internet(self.host):
00228             for cap in self.server.capabilities:
00229                 self.assertIsInstance(cap, str)
00230             self.assertTrue('LOGINDISABLED' in self.server.capabilities)
00231             self.assertTrue('AUTH=ANONYMOUS' in self.server.capabilities)
00232             rs = self.server.login(self.username, self.password)
00233             self.assertEqual(rs[0], 'OK')

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]

Definition at line 210 of file test_imaplib.py.

Reimplemented in test.test_imaplib.RemoteIMAP_SSLTest.

Definition at line 214 of file test_imaplib.py.

Definition at line 213 of file test_imaplib.py.

Reimplemented in test.test_imaplib.RemoteIMAP_SSLTest.

Definition at line 211 of file test_imaplib.py.

Definition at line 218 of file test_imaplib.py.

Definition at line 212 of file test_imaplib.py.


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