Example #1
0
 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]
     )
Example #2
0
 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]
Example #3
0
 def runTest(self):
     r = checkDNS(domain, ip, ns)
     assert len(r) == 0