Exemplo n.º 1
0
 def test_run_3(self):
     # tests a list that would result in the same ip
     res = run("google.com",
               ["ns1.google.com", "ns2.google.com", "ns2.google.com"],
               False)
     # print(res)
     assert not res["result"]
Exemplo n.º 2
0
 def test_run_4(self):
     # here we want to test to see if the given list
     # of ns indeed have different ip or not
     # should return true
     res = run("google.com",
               ["ns1.google.com", "ns2.google.com", "ns3.google.com"], True)
     # print(res)
     assert res["result"]
Exemplo n.º 3
0
 def test_run_5(self):
     # tests a list with only 1 item
     res = run("google.com", ["ns1.google.com"], True)
     # print(res)
     assert not res["result"]