'L{URL.asIRI} decodes any percent-encoded text in the URI, making it
more suitable for reading by humans, and returns a new L{URL}.'

def test_asIRI(self):

    asciiish = u'http://xn--9ca.com/%C3%A9?%C3%A1=%C3%AD#%C3%BA'
    uri = URL.fromText(asciiish)
    iri = uri.asIRI()
    self.assertEqual(uri.host, u'xn--9ca.com')
    self.assertEqual(uri.path[0], u'%C3%A9')
    self.assertEqual(uri.asText(), asciiish)
    expectedIRI = u'http://\xe9.com/\xe9?\xe1=\xed#\xfa'
    actualIRI = iri.asText()
    self.assertEqual(actualIRI, expectedIRI, (u'%r    !=    %r' % (actualIRI, expectedIRI)))
