Back to index

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

List of all members.

Public Member Functions

def setUp
def tearDown
def testRecvfromTimeout

Public Attributes

 sock

Static Public Attributes

float fuzz = 2.0
string localhost = '127.0.0.1'
 tearDown = setUp

Detailed Description

UDP test case for socket.socket() timeout functions

Definition at line 191 of file test_timeout.py.


Member Function Documentation

Reimplemented from test.test_timeout.TimeoutTestCase.

Definition at line 194 of file test_timeout.py.

00194 
00195     def setUp(self):
00196         self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

Here is the caller graph for this function:

Definition at line 197 of file test_timeout.py.

00197 
00198     def tearDown(self):
00199         self.sock.close()

Here is the caller graph for this function:

Definition at line 200 of file test_timeout.py.

00200 
00201     def testRecvfromTimeout(self):
00202         # Test recvfrom() timeout
00203         # Prevent "Address already in use" socket exceptions
00204         support.bind_port(self.sock, self.localhost)
00205         self._sock_operation(1, 1.5, 'recvfrom', 1024)
00206 

Here is the call graph for this function:


Member Data Documentation

float test.test_timeout.TimeoutTestCase.fuzz = 2.0 [static, inherited]

Definition at line 98 of file test_timeout.py.

string test.test_timeout.TimeoutTestCase.localhost = '127.0.0.1' [static, inherited]

Definition at line 100 of file test_timeout.py.

Definition at line 195 of file test_timeout.py.

Definition at line 105 of file test_timeout.py.


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