def METHOD_NAME(resource):  # Our pretend sync handler
    synced_resources.append(resource)
    # Ask the listener to stop after we get a resource,
    # so this test actually ends someday:
    notification_listener.stop()