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