Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_smtplib.BadHELOServerTests Class Reference

List of all members.

Public Member Functions

def setUp
def tearDown
def testFailingHELO

Public Attributes

 old_stdout
 output
 port

Detailed Description

Definition at line 523 of file test_smtplib.py.


Member Function Documentation

Definition at line 525 of file test_smtplib.py.

00525 
00526     def setUp(self):
00527         smtplib.socket = mock_socket
00528         mock_socket.reply_with(b"199 no hello for you!")
00529         self.old_stdout = sys.stdout
00530         self.output = io.StringIO()
00531         sys.stdout = self.output
00532         self.port = 25

Here is the caller graph for this function:

Definition at line 533 of file test_smtplib.py.

00533 
00534     def tearDown(self):
00535         smtplib.socket = socket
00536         sys.stdout = self.old_stdout

Here is the caller graph for this function:

Definition at line 537 of file test_smtplib.py.

00537 
00538     def testFailingHELO(self):
00539         self.assertRaises(smtplib.SMTPConnectError, smtplib.SMTP,
00540                             HOST, self.port, 'localhost', 3)
00541 

Here is the call graph for this function:


Member Data Documentation

Definition at line 528 of file test_smtplib.py.

Definition at line 529 of file test_smtplib.py.

Definition at line 531 of file test_smtplib.py.


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