Beispiel #1
0
 def test_port(self):
     r = feedparser._convert_to_idn(u'http://%s:8080/' % (self.hostname,))
     self.assertEqual(r, u'http://xn--hxajbheg2az3al.xn--jxalpdlp:8080/')
Beispiel #2
0
 def test_port(self):
     r = feedparser._convert_to_idn(u'http://%s:8080/' % (self.hostname, ))
     self.assertEqual(r, u'http://xn--hxajbheg2az3al.xn--jxalpdlp:8080/')
Beispiel #3
0
 def test_control(self):
     r = feedparser._convert_to_idn(u'http://example.test/')
     self.assertEqual(r, u'http://example.test/')
Beispiel #4
0
 def test_control(self):
     r = feedparser._convert_to_idn(u'http://example.test/')
     self.assertEqual(r, u'http://example.test/')