Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Private Attributes
test.test_httpservers.BaseTestCase Class Reference
Inheritance diagram for test.test_httpservers.BaseTestCase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown
def request

Public Attributes

 server_started
 thread
 connection

Private Attributes

 _threads

Detailed Description

Definition at line 54 of file test_httpservers.py.


Member Function Documentation

def test.test_httpservers.BaseTestCase.request (   self,
  uri,
  method = 'GET',
  body = None,
  headers = {} 
)

Definition at line 68 of file test_httpservers.py.

00068 
00069     def request(self, uri, method='GET', body=None, headers={}):
00070         self.connection = http.client.HTTPConnection(self.HOST, self.PORT)
00071         self.connection.request(method, uri, body, headers)
00072         return self.connection.getresponse()
00073 

Here is the caller graph for this function:

Reimplemented in test.test_httpservers.CGIHTTPServerTestCase, test.test_httpservers.SimpleHTTPServerTestCase, and test.test_httpservers.BaseHTTPServerTestCase.

Definition at line 55 of file test_httpservers.py.

00055 
00056     def setUp(self):
00057         self._threads = support.threading_setup()
00058         os.environ = support.EnvironmentVarGuard()
00059         self.server_started = threading.Event()
00060         self.thread = TestServerThread(self, self.request_handler)
00061         self.thread.start()
00062         self.server_started.wait()

Here is the caller graph for this function:

Reimplemented in test.test_httpservers.CGIHTTPServerTestCase, and test.test_httpservers.SimpleHTTPServerTestCase.

Definition at line 63 of file test_httpservers.py.

00063 
00064     def tearDown(self):
00065         self.thread.stop()
00066         os.environ.__exit__()
00067         support.threading_cleanup(*self._threads)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 56 of file test_httpservers.py.

Definition at line 69 of file test_httpservers.py.

Definition at line 58 of file test_httpservers.py.

Definition at line 59 of file test_httpservers.py.


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