def METHOD_NAME(mocker, connector_name, mocked_json_payload, mocked_status_code, expected_status):
    # Mock the api call to get the latest build status for a connector version
    mock_response = MagicMock()
    mock_response.json.return_value = mocked_json_payload
    mock_response.status_code = mocked_status_code
    mock_get = mocker.patch.object(requests, "get", return_value=mock_response)
    connector_name = connector_name.replace("connectors/", "")
    assert inputs.fetch_latest_build_status_for_connector(connector_name) == expected_status
    assert mock_get.call_args == call(f"{constants.CONNECTOR_TEST_SUMMARY_URL}/{connector_name}/index.json")