'When a hostname is sent as part of forwarding requests, it
is resolved using HostnameEndpoint\'s resolver.'

def test_channelOpenHostnameRequests(self):

    sut = forwarding.SSHConnectForwardingChannel(hostport=('fwd.example.org', 1234))
    memoryReactor = MemoryReactorClock()
    sut._reactor = deterministicResolvingReactor(memoryReactor, ['::1'])
    sut.channelOpen(None)
    self.makeTCPConnection(memoryReactor)
    self.successResultOf(sut._channelOpenDeferred)
    self.assertIsInstance(sut.client, forwarding.SSHForwardingClient)
    self.assertEqual(IPv6Address('TCP', '::1', 1234), sut.client.transport.getPeer())
