def test_getPeer(self):
        """
        L{SSHChannel.getPeer} returns the same object as the underlying
        transport's C{getPeer} method returns.
        """
        peer = IPv4Address('TCP', '192.168.0.1', 54321)
        connectSSHTransport(service=self.channel.conn, peerAddress=peer)

        self.assertEqual(SSHTransportAddress(peer), self.channel.getPeer())

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