Esempio n. 1
0
 def test_gethostbyname_ex_v6(self):
     qdns.configure()
     qdns.gethostbyname_ex('::1', self._receive)
     qdns.stop(True)
     self.assertEquals('::1', self.received[0][2][0])
Esempio n. 2
0
 def test_gethostbyname_ex_host(self):
     qdns.configure()
     qdns.gethostbyname_ex('python.org', self._receive)
     qdns.stop(True)
     self.assertEquals('82.94.164.162', self.received[0][2][0])
Esempio n. 3
0
 def test_gethostbyname_ex_host(self):
     qdns.configure()
     qdns.gethostbyname_ex('python.org', self._receive)
     qdns.stop(True)
     self.assertEquals('82.94.164.162', self.received[0][2][0])
Esempio n. 4
0
 def test_gethostbyname_ex_v6(self):
     qdns.configure()
     qdns.gethostbyname_ex('::1', self._receive)
     qdns.stop(True)
     self.assertEquals('::1', self.received[0][2][0])