def _verify_service(fledge_url, status):
    jdoc = _get_result(fledge_url, '/fledge/service')
    srvc = [s for s in jdoc['services'] if (s['name'] == SERVICE_NAME)]
    assert (1 == len(srvc))
    svc = srvc[0]
    assert (SERVICE.capitalize() == svc['type'])
    assert (status == svc['status'])
def _verify_service(fledge_url, status):
    jdoc = _get_result(fledge_url, '/fledge/service')
    srvc = [s for s in jdoc['services'] if (s['name'] == SERVICE_NAME)]
    assert (1 == len(srvc))
    svc = srvc[0]
    assert (SERVICE.capitalize() == svc['type'])
    assert (status == svc['status'])