def _get_services():
    cookie = get_cookie(config.ADMIN_USER,
                        config.USERS[config.ADMIN_USER]['password'])
    about = requests.get(config.GATEWAY_URL + '/manage/about/',
                         headers={'Accept': 'application/json'},
                         cookies={'auth_pubtkt': cookie})
    if about.status_code > 399:
        return []
    try:
        return about.json()['service']['services']
    except ValueError:
        raise Exception("Cannot get services from %s" % (config.GATEWAY_URL +
                                                         '/manage/about/'))
dataset/ETHPy150Open redhat-cip/software-factory/tests/functional/utils.py/_get_services/original