Set up an HTTP server to receive log messages, and a HTTPHandler pointing to that server's address and port.
(self)
| 2161 | """Test for HTTPHandler.""" |
| 2162 | |
| 2163 | def setUp(self): |
| 2164 | """Set up an HTTP server to receive log messages, and a HTTPHandler |
| 2165 | pointing to that server's address and port.""" |
| 2166 | BaseTest.setUp(self) |
| 2167 | self.handled = threading.Event() |
| 2168 | |
| 2169 | def handle_request(self, request): |
| 2170 | self.command = request.command |