(self)
| 2365 | |
| 2366 | class TunnelTests(TestCase): |
| 2367 | def setUp(self): |
| 2368 | response_text = ( |
| 2369 | 'HTTP/1.1 200 OK\r\n\r\n' # Reply to CONNECT |
| 2370 | 'HTTP/1.1 200 OK\r\n' # Reply to HEAD |
| 2371 | 'Content-Length: 42\r\n\r\n' |
| 2372 | ) |
| 2373 | self.host = 'proxy.com' |
| 2374 | self.port = client.HTTP_PORT |
| 2375 | self.conn = client.HTTPConnection(self.host) |
| 2376 | self.conn._create_connection = self._create_connection(response_text) |
| 2377 | |
| 2378 | def tearDown(self): |
| 2379 | self.conn.close() |
nothing calls this directly
no test coverage detected