Back to index

python3.2  3.2.2
Classes | Public Member Functions | Public Attributes | Static Public Attributes
test.test_xmlrpc.BaseKeepaliveServerTestCase Class Reference
Inheritance diagram for test.test_xmlrpc.BaseKeepaliveServerTestCase:
Inheritance graph
Collaboration diagram for test.test_xmlrpc.BaseKeepaliveServerTestCase:
Collaboration graph

List of all members.


class  RequestHandler

Public Member Functions

def setUp
def tearDown

Public Attributes


Static Public Attributes

 requestHandler = None
int request_count = 1
tuple threadFunc = staticmethod(http_server)

Detailed Description

Definition at line 601 of file

Member Function Documentation

Reimplemented from test.test_xmlrpc.BaseServerTestCase.

Definition at line 618 of file

00619     def setUp(self):
00620         #clear request log
00621         self.RequestHandler.myRequests = []
00622         return BaseServerTestCase.setUp(self)
00624 #A test case that verifies that a server using the HTTP/1.1 keep-alive mechanism
#does indeed serve subsequent requests on the same connection

Here is the caller graph for this function:

Definition at line 437 of file

00438     def tearDown(self):
00439         # wait on the server thread to terminate
00440         self.evt.wait(4.0)
00441         # XXX this code does not work, and in fact stop_serving doesn't exist.
00442         if not self.evt.is_set():
00443             self.evt.set()
00444             stop_serving()
00445             raise RuntimeError("timeout reached, test has failed")
00447         # disable traceback reporting
00448         xmlrpc.server.SimpleXMLRPCServer._send_traceback_header = False

Here is the caller graph for this function:

Member Data Documentation

Definition at line 428 of file

Definition at line 420 of file

Reimplemented in test.test_xmlrpc.MultiPathServerTestCase.

Definition at line 422 of file

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