示例#1
0
文件: test.py 项目: BasementCat/qdns
 def test_getaddrinfo_v6(self):
     qdns.configure()
     qdns.getaddrinfo('::1', self._receive)
     qdns.stop(True)
     self.assertEquals('::1', self.received[0][0][4][0])
示例#2
0
文件: test.py 项目: hordecore/qdns
 def test_getaddrinfo_v6(self):
     qdns.configure()
     qdns.getaddrinfo('::1', self._receive)
     qdns.stop(True)
     self.assertEquals('::1', self.received[0][0][4][0])
示例#3
0
文件: test.py 项目: BasementCat/qdns
 def test_getaddrinfo_host(self):
     qdns.configure()
     qdns.getaddrinfo('python.org', self._receive)
     qdns.stop(True)
     self.assertEquals('82.94.164.162', self.received[0][0][4][0])
示例#4
0
文件: test.py 项目: hordecore/qdns
 def test_getaddrinfo_host(self):
     qdns.configure()
     qdns.getaddrinfo('python.org', self._receive)
     qdns.stop(True)
     self.assertEquals('82.94.164.162', self.received[0][0][4][0])