예제 #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