Esempio n. 1
0
 def test_run_13(self):
     res = run("216.58.207.206", ["ns1.google.com"], True)
     assert not res["result"]
Esempio n. 2
0
 def test_run_14(self):
     res = run("google.com", ["ns1.google.com", "216.239.34.10"], True)
     assert not res["result"]
Esempio n. 3
0
 def test_run_12(self):
     res = run("cccc.aaa", ["aaa.bbb.ccc", "ddd.eee.fff"], True)
     assert res["result"]
Esempio n. 4
0
 def test_run_11(self):
     res = run("thisiswrong", ["thisisnotcorrect", "fail.com"], True)
     assert not res["result"]
Esempio n. 5
0
 def test_run(self):
     res = run("thisshouldpass.com",
               ["ns1.thisshouldpass.com", "ns2.thisshouldpass.com"], False)
     assert res["result"]
Esempio n. 6
0
 def test_run_10(self):
     res = run("thisshouldfail.com",
               ["ns1.thisshouldfail.com", "ns2.thisshouldfail-.com"], True)
     assert not res["result"]
Esempio n. 7
0
 def test_run_9(self):
     res = run("thisshouldfäil.com",
               ["ns1.thisshouldpass.com", "ns2.thisshouldpass.com"], True)
     assert not res["result"]