def test_getHost(self):
        """
        L{TuntapPort.getHost} returns a L{TunnelAddress} including the tunnel's
        type and name.
        """
        self.port.startListening()
        address = self.port.getHost()
        self.assertEqual(
            TunnelAddress(
                self._tunnelTypeOnly(self.helper.TUNNEL_TYPE),
                self.system.getTunnel(self.port).name),
            address)

        L{TuntapPort.getHost} returns a L{TunnelAddress} including the tunnel's
        type and name.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/pair/test/test_tuntap.py