def test_sent_and_receive_notification(self, fledge_url, start_south, wait_time):
    data = {'name': 'Test4', 'description': 'Test4_Notification', 'rule': NOTIFY_INBUILT_RULES[0], 'channel': NOTIFY_PLUGIN, 'enabled': True, 'notification_type': 'one shot'}
    name = data['name']
    _add_notification_instance(fledge_url, data)
    self.configure_rule_with_single_item_eval_type(fledge_url, name)
    cat_name = 'delivery{}'.format(name)
    script_path = '$FLEDGE_ROOT/tests/system/python/data/notify35.py'
    url = (((('http://' + fledge_url) + '/fledge/category/') + cat_name) + '/script/upload')
    upload_script = 'curl -F "script=@{}" {}'.format(script_path, url)
    subprocess.run(upload_script, shell=True, check=True, stdout=subprocess.DEVNULL)
    self.enable_notification(fledge_url, ('delivery' + name))
    self.ingest_readings_from_fogbench(fledge_url, wait_time)
    time.sleep(wait_time)
    _verify_audit_log_entry(fledge_url, '/fledge/audit?source=NTFSN', name=name)
def test_sent_and_receive_notification(self, fledge_url, start_south, wait_time):
    data = {'name': 'Test4', 'description': 'Test4_Notification', 'rule': NOTIFY_INBUILT_RULES[0], 'channel': NOTIFY_PLUGIN, 'enabled': True, 'notification_type': 'one shot'}
    name = data['name']
    _add_notification_instance(fledge_url, data)
    self.configure_rule_with_single_item_eval_type(fledge_url, name)
    cat_name = 'delivery{}'.format(name)
    script_path = '$FLEDGE_ROOT/tests/system/python/data/notify35.py'
    url = (((('http://' + fledge_url) + '/fledge/category/') + cat_name) + '/script/upload')
    upload_script = 'curl -F "script=@{}" {}'.format(script_path, url)
    subprocess.run(upload_script, shell=True, check=True, stdout=subprocess.DEVNULL)
    self.enable_notification(fledge_url, ('delivery' + name))
    self.ingest_readings_from_fogbench(fledge_url, wait_time)
    time.sleep(wait_time)
    _verify_audit_log_entry(fledge_url, '/fledge/audit?source=NTFSN', name=name)