def test_service_generated_notification(mgr, notification_cleanup):
    mgr.dispatch(
        to_ele("""
            <create-subscription xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
              <filter>
                <string-container-simple-string-changed 
                    xmlns="urn:ietf:params:xml:ns:yang:test-notifications" 
                />
              </filter>
            </create-subscription>
            """))
    assert get_test_notification_simple_string(mgr) == "Not Found"
    set_test_notification_simple_string(mgr, "Notification Message")
    generate_test_notification_simple_string_notif("Notification Message")
    results = find_notifications_matching(
        mgr,
        ("/notif:notification"
         "/test-notification:string-container-simple-string-changed"
         "/test-notification:new-value"),
    )
    assert results[0].text == "Notification Message"
def test_config_changed_notification(mgr, notification_cleanup):
    mgr.create_subscription()
    assert get_test_notification_simple_string(mgr) == "Not Found"
    set_test_notification_simple_string(mgr, "Test Value")
    find_notifications_matching(
        mgr, "/notif:notification/nc-notif:netconf-config-change")