コード例 #1
0
ファイル: rdns_test.py プロジェクト: gxela/rdns.py
 def test_localhost(self):
     ip, count, hosts = rdns.wwhi_rip("127.0.0.1")()
     self.assertEqual("127.0.0.1", ip, "IP Not equal")
     self.assertEqual(0, len(hosts), "hosts not empty")
コード例 #2
0
ファイル: rdns_test.py プロジェクト: gxela/rdns.py
 def test_webhostinginfo(self):
     ip, count, hosts = rdns.wwhi_rip("67.15.149.209")()
     self.assertEqual("67.15.149.209", ip, "IP Not equal") #current webhosting.info ip address
     self.assertEqual(True, hosts.has_key("WEBHOSTING.INFO"), "hosts key not exists")
     self.assertEqual(True, hosts["WEBHOSTING.INFO"] == "67.15.149.209", "Ip not equal")