MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_connect_put_request_ipv6

Method test_connect_put_request_ipv6

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

Source from the content-addressed store, hash-verified

2512 self.conn.sock.data)
2513
2514 def test_connect_put_request_ipv6(self):
2515 self.conn.set_tunnel('[1:2:3::4]', 1234)
2516 self.conn.request('PUT', '/', '')
2517 self.assertEqual(self.conn.sock.host, self.host)
2518 self.assertEqual(self.conn.sock.port, client.HTTP_PORT)
2519 self.assertIn(b'CONNECT [1:2:3::4]:1234', self.conn.sock.data)
2520 self.assertIn(b'Host: [1:2:3::4]:1234', self.conn.sock.data)
2521
2522 def test_connect_put_request_ipv6_port(self):
2523 self.conn.set_tunnel('[1:2:3::4]:1234')

Callers

nothing calls this directly

Calls 4

assertInMethod · 0.80
set_tunnelMethod · 0.45
requestMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected