def METHOD_NAME(grant_factory):
    grant = grant_factory(
        user_id=123,
        voucher_code="ABC123",
        pretix_voucher_id=2,
    )
    with patch("domain_events.publisher.publish_message") as mock_publish:
        send_grant_voucher_email(grant)
    mock_publish.assert_called_once_with(
        "GrantVoucherEmailSent",
        body={
            "grant_id": grant.id,
        },
        deduplication_id=ANY,
    )