コード例 #1
0
 def get_avg_time(self, ip):
     """Average response time of the server."""
     ip = ip.split(':')[0]
     return ping.ping(ip)
コード例 #2
0
def test_ping():
    assert ping('www.google.com') > 0.0
コード例 #3
0
ファイル: test_ping.py プロジェクト: jeffreywinn/jabbapylib
def test_ping():
    assert ping("www.google.com") > 0.0