If call _get_hostport() in set_tunnel() then it should be removed in _tunnel().
As for tests, it would be better do not rely on implementation details. Instead you can monkey-patch the send() method of of HTTPConnection instance and check passed argument.