MCPcopy Index your code
hub / github.com/python/cpython / test_no_proxy_response_headers

Method test_no_proxy_response_headers

Lib/test/test_httplib.py:2601–2612  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

_create_connectionMethod · 0.95
assertIsNoneMethod · 0.80
formatMethod · 0.45
joinMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected