def test_ping(self):
     protocol_version = Bolt.ping(("localhost", 9999))
     assert protocol_version is None
 def test_ping_timeout(self):
     protocol_version = Bolt.ping(("localhost", 9999), timeout=1)
     assert protocol_version is None
def _ping_range(port_range):
    count = 0
    for port in port_range:
        count += 1 if Bolt.ping((NEO4J_HOST, port)) else 0
    return count