'L{URL.fromText} parses custom port numbers as integers.'

def test_portText(self):

    portURL = URL.fromText(u'http://www.example.com:8080/')
    self.assertEqual(portURL.port, 8080)
    self.assertEqual(portURL.asText(), u'http://www.example.com:8080/')
