from utils import IntegrationRunner
from pinging_spec import TestHubAfterPinging

runner = IntegrationRunner(test_file=__file__, access_pw="some password")
hub = runner.init_hub()
TestHubAfterPinging.hub_dir = hub.path

with hub.running():
    with runner.section(title="successfully pinging a hub", test_cls=TestHubAfterPinging):
        node = runner.init_node(node_id="my node")
        hub.mock_time(42)
        node.ping()
