(self)
| 2555 | self.assertIn(expected_header, headers.items()) |
| 2556 | |
| 2557 | def test_no_proxy_response_headers(self): |
| 2558 | expected_header = ('X-Dummy', '1') |
| 2559 | response_text = ( |
| 2560 | 'HTTP/1.0 200 OK\r\n' |
| 2561 | '{0}\r\n\r\n'.format(':'.join(expected_header)) |
| 2562 | ) |
| 2563 | |
| 2564 | self.conn._create_connection = self._create_connection(response_text) |
| 2565 | |
| 2566 | self.conn.request('PUT', '/', '') |
| 2567 | headers = self.conn.get_proxy_response_headers() |
| 2568 | self.assertIsNone(headers) |
| 2569 | |
| 2570 | def test_tunnel_leak(self): |
| 2571 | sock = None |
nothing calls this directly
no test coverage detected