def test_get_default_notification_plugins(self, fledge_url, remove_directories):
    remove_directories((os.environ['FLEDGE_ROOT'] + '/plugins/notificationDelivery'))
    remove_directories((os.environ['FLEDGE_ROOT'] + '/plugins/notificationRule'))
    remove_directories((os.environ['FLEDGE_ROOT'] + 'cmake_build/C/plugins/notificationDelivery'))
    remove_directories((os.environ['FLEDGE_ROOT'] + 'cmake_build/C/plugins/notificationRule'))
    jdoc = _get_result(fledge_url, '/fledge/notification/plugin')
    assert ([] == jdoc['delivery'])
    assert (1 == len(jdoc['rules']))
    assert (NOTIFY_INBUILT_RULES[0] == jdoc['rules'][0]['name'])
def test_get_default_notification_plugins(self, fledge_url, remove_directories):
    remove_directories((os.environ['FLEDGE_ROOT'] + '/plugins/notificationDelivery'))
    remove_directories((os.environ['FLEDGE_ROOT'] + '/plugins/notificationRule'))
    remove_directories((os.environ['FLEDGE_ROOT'] + 'cmake_build/C/plugins/notificationDelivery'))
    remove_directories((os.environ['FLEDGE_ROOT'] + 'cmake_build/C/plugins/notificationRule'))
    jdoc = _get_result(fledge_url, '/fledge/notification/plugin')
    assert ([] == jdoc['delivery'])
    assert (1 == len(jdoc['rules']))
    assert (NOTIFY_INBUILT_RULES[0] == jdoc['rules'][0]['name'])