def test_local_model_not_found(mock_local_models) -> None:
    """
    Test that a model in the model table will be accepted.
    """
    err_msg = f"No locally hosted lora3 was found."
    with pytest.raises(ValueError) as msg:
        x = NVIDIARerank(base_url="http://localhost:8000/v1", model="lora3")
    assert err_msg == str(msg.value)

    Test that a model in the model table will be accepted.
    
llama-index-integrations/postprocessor/llama-index-postprocessor-nvidia-rerank/tests/test_postprocessor_nvidia_rerank.py