'#13704 - Check urlize handles IDN correctly'

def test_idn(self):

    self.assertEqual(urlize('http://c\xe2\x9c\xb6.ws'), '<a    href="http://xn--c-lgq.ws"    rel="nofollow">http://c\xe2\x9c\xb6.ws</a>')
    self.assertEqual(urlize('www.c\xe2\x9c\xb6.ws'), '<a    href="http://www.xn--c-lgq.ws"    rel="nofollow">www.c\xe2\x9c\xb6.ws</a>')
    self.assertEqual(urlize('c\xe2\x9c\xb6.org'), '<a    href="http://xn--c-lgq.org"    rel="nofollow">c\xe2\x9c\xb6.org</a>')
    self.assertEqual(urlize('info@c\xe2\x9c\xb6.org'), '<a    href="mailto:info@xn--c-lgq.org">info@c\xe2\x9c\xb6.org</a>')
