def test_portText(self):
        """
        L{URL.from_text} parses custom port numbers as integers.
        """
        portURL = URL.from_text(u"http://www.example.com:8080/")
        self.assertEqual(portURL.port, 8080)
        self.assertEqual(portURL.to_text(), u"http://www.example.com:8080/")

        L{URL.from_text} parses custom port numbers as integers.
        
stackoverflow/venv/lib/python3.6/site-packages/hyperlink/test/test_url.py