def load_config_file(config_file):
    configParser = ConfigParser.ConfigParser()
    configParser.read(config_file)
    options = {
        'scheme': 'scheme',
        'hostname': 'host',
        'port': 'port',
        'project': 'project',
        'branch': 'defaultbranch',
        'remote': 'defaultremote',
        'rebase': 'defaultrebase',
        'track': 'track',
        'usepushurl': 'usepushurl',
    }
    config = {}
    for config_key, option_name in options.items():
        if configParser.has_option('gerrit', option_name):
            config[config_key] = configParser.get('gerrit', option_name)
    return config
Test if the watchdog: doesn't send message if one was sent, and send one if the channel is timing out.
dataset/ETHPy150Open openstack-infra/git-restack/git_restack/cmd.py/load_config_file--crossover with--dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py/MainTests.test_watchdog_is_watchdoging