def METHOD_NAME(grant_factory):
    grant = grant_factory(status=Grant.Status.waiting_list)
    with patch("domain_events.publisher.publish_message") as mock_publish:
        send_grant_reply_waiting_list_email(grant)
    mock_publish.assert_called_once_with(
        "GrantReplyWaitingListSent",
        body={
            "grant_id": grant.id,
        },
        deduplication_id=str(grant.id),
    )