'L{URL.fromText} will parse the C{userinfo} portion of the URI
separately from the host and port.'

def test_userinfo(self):

    url = URL.fromText(u'http://someuser:somepassword@example.com/some-segment@ignore')
    self.assertEqual(url.authority(True), u'someuser:somepassword@example.com')
    self.assertEqual(url.authority(False), u'someuser:@example.com')
    self.assertEqual(url.userinfo, u'someuser:somepassword')
    self.assertEqual(url.user, u'someuser')
    self.assertEqual(url.asText(), u'http://someuser:@example.com/some-segment@ignore')
    self.assertEqual(url.replace(userinfo=u'someuser').asText(), u'http://someuser@example.com/some-segment@ignore')
