def METHOD_NAME(
    self, db_session, meta_attrs
):
    # Add one non-matching DocumentMeta to the database to be ignored.
    db_session.add(DocumentMeta(**dict(meta_attrs, type="noise")))
    create_or_update_document_meta(session=db_session, **meta_attrs)
    document_meta = db_session.query(DocumentMeta).all()[-1]
    assert document_meta == Any.object.with_attrs(meta_attrs)