Back to index

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

List of all members.

Public Member Functions

def setUp
def test_logincapa
def tearDown
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 242 of file test_imaplib.py.


Member Function Documentation

Reimplemented from test.test_imaplib.RemoteIMAPTest.

Definition at line 244 of file test_imaplib.py.

00244 
00245     def setUp(self):
00246         super().setUp()
00247         with transient_internet(self.host):
00248             rs = self.server.starttls()
00249             self.assertEqual(rs[0], 'OK')

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 250 of file test_imaplib.py.

00250 
00251     def test_logincapa(self):
00252         for cap in self.server.capabilities:
00253             self.assertIsInstance(cap, str)
00254         self.assertFalse('LOGINDISABLED' in self.server.capabilities)
00255 
00256 
@unittest.skipUnless(ssl, "SSL not available")

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.

test.test_imaplib.RemoteIMAPTest.imap_class = imaplib.IMAP4 [static, inherited]

Reimplemented in test.test_imaplib.RemoteIMAP_SSLTest.

Definition at line 214 of file test_imaplib.py.

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

Definition at line 213 of file test_imaplib.py.

int test.test_imaplib.RemoteIMAPTest.port = 143 [static, inherited]

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.

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: