示例#1
0
文件: test_dns.py 项目: bear/kenkou
 def runTest(self):
     r = checkDNS(domain, ip, ["ns.wrong.com"])
     assert len(r) == 1
     assert (
         "The given list of nameservers does not match the DNS response: ns1.dnsimple.com,ns2.dnsimple.com,ns3.dnsimple.com,ns4.dnsimple.com"
         in r[0]
     )
示例#2
0
文件: test_dns.py 项目: bear/kenkou
 def runTest(self):
     r = checkDNS(domain, "127.0.0.1", ns)
     assert len(r) == 1
     assert "was not found in the DNS response" in r[0]
示例#3
0
文件: test_dns.py 项目: bear/kenkou
 def runTest(self):
     r = checkDNS(domain, ip, ns)
     assert len(r) == 0