def test_getHost(self):
        """
        L{SSHChannel.getHost} returns the same object as the underlying
        transport's C{getHost} method returns.
        """
        host = IPv4Address('TCP', '127.0.0.1', 12345)
        connectSSHTransport(service=self.channel.conn, hostAddress=host)

        self.assertEqual(SSHTransportAddress(host), self.channel.getHost())

        L{SSHChannel.getHost} returns the same object as the underlying
        transport's C{getHost} method returns.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_channel.py