def _add_notification_instance(fledge_url, payload):
    conn = http.client.HTTPConnection(fledge_url)
    conn.request('POST', '/fledge/notification', json.dumps(payload))
    r = conn.getresponse()
    assert (200 == r.status)
    r = r.read().decode()
    jdoc = json.loads(r)
    assert ('Notification {} created successfully'.format(payload['name']) == jdoc['result'])
def _add_notification_instance(fledge_url, payload):
    conn = http.client.HTTPConnection(fledge_url)
    conn.request('POST', '/fledge/notification', json.dumps(payload))
    r = conn.getresponse()
    assert (200 == r.status)
    r = r.read().decode()
    jdoc = json.loads(r)
    assert ('Notification {} created successfully'.format(payload['name']) == jdoc['result'])