Exemplo n.º 1
0
 def get_avg_time(self, ip):
     """Average response time of the server."""
     ip = ip.split(':')[0]
     return ping.ping(ip)
Exemplo n.º 2
0
def test_ping():
    assert ping('www.google.com') > 0.0
Exemplo n.º 3
0
def test_ping():
    assert ping("www.google.com") > 0.0