def test_queue_udf_create(self):
        """Test event generated when a UDF has been created."""
        owner_id = 10
        udf_id = uuid.uuid4()
        root_id = uuid.uuid4()
        suggested_path = 'foo/bar/baz'
        udf = FakeUDF(owner_id, root_id, udf_id, suggested_path)
        with fsync_commit():
            self.gw.queue_udf_create(udf)
        self.assertEqual(self.dummy_notifier.notifications, [
            UDFCreate(owner_id, root_id, udf_id, suggested_path,
                      self.gw.session_id)
        ])