'The string representation of a L{TuntapPort} instance includes the
tunnel type and interface and the protocol associated with the port.'

def test_listeningString(self):

    self.port.startListening()
    if _PY3:
        self.assertRegex(str(self.port), fullyQualifiedName(self.protocol.__class__))
        expected = ('    listening    on    %s/%s>' % (self._tunnelTypeOnly(self.helper.TUNNEL_TYPE).name, self.system.getTunnel(self.port).name))
        self.assertTrue((str(self.port).find(expected) != (-1)))
    else:
        expected = ('<%s    listening    on    %s/%s>' % (fullyQualifiedName(self.protocol.__class__), self._tunnelTypeOnly(self.helper.TUNNEL_TYPE).name, self.system.getTunnel(self.port).name))
        self.assertEqual(expected, str(self.port))
