(self)
| 2599 | self.assertIn(expected_header, headers.items()) |
| 2600 | |
| 2601 | def test_no_proxy_response_headers(self): |
| 2602 | expected_header = ('X-Dummy', '1') |
| 2603 | response_text = ( |
| 2604 | 'HTTP/1.0 200 OK\r\n' |
| 2605 | '{0}\r\n\r\n'.format(':'.join(expected_header)) |
| 2606 | ) |
| 2607 | |
| 2608 | self.conn._create_connection = self._create_connection(response_text) |
| 2609 | |
| 2610 | self.conn.request('PUT', '/', '') |
| 2611 | headers = self.conn.get_proxy_response_headers() |
| 2612 | self.assertIsNone(headers) |
| 2613 | |
| 2614 | def test_tunnel_leak(self): |
| 2615 | sock = None |
nothing calls this directly
no test coverage detected