def METHOD_NAME(mocker):
    path = "openbb_terminal.core.session.session_model."
    mock_fetch_user_configs = mocker.patch(path + "Hub.fetch_user_configs")
    mock_apply_configs = mocker.patch(path + "Local.apply_configs")
    mock_update_flair = mocker.patch(path + "Local.update_flair")
    mock_get_updated_hub_sources = mocker.patch(
        path + "get_updated_hub_sources", return_value={}
    )
    response = Response()
    response.status_code = 400
    mock_fetch_user_configs.return_value = response
    assert session_model.login(TEST_SESSION) == session_model.LoginStatus.FAILED
    mock_fetch_user_configs.assert_called_once_with(
        TEST_SESSION, "https://payments.openbb.co/"
    )
    mock_apply_configs.assert_not_called()
    mock_update_flair.assert_not_called()
    mock_get_updated_hub_sources.assert_not_called()