def enable_notification(self, fledge_url, cat_name, is_enabled=True):
    _enabled = ('true' if is_enabled else 'false')
    data = {'value': _enabled}
    conn = http.client.HTTPConnection(fledge_url)
    conn.request('PUT', '/fledge/category/{}/enable'.format(cat_name), json.dumps(data))
    r = conn.getresponse()
    assert (200 == r.status)
def enable_notification(self, fledge_url, cat_name, is_enabled=True):
    _enabled = ('true' if is_enabled else 'false')
    data = {'value': _enabled}
    conn = http.client.HTTPConnection(fledge_url)
    conn.request('PUT', '/fledge/category/{}/enable'.format(cat_name), json.dumps(data))
    r = conn.getresponse()
    assert (200 == r.status)