def test_repr(self):
        """
        C{repr()} on the listening port object includes the port number.
        """
        reactor = self.buildReactor()
        port = self.getListeningPort(reactor, DatagramProtocol())
        self.assertIn(repr(port.getHost().port), str(port))

        C{repr()} on the listening port object includes the port number.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/internet/test/test_udp.py