def METHOD_NAME(
    mocker,
    email: str,
    password: str,
    token: str,
    keep_session: bool,
    has_session: bool,
    status: LoginStatus,
):
    path = "openbb_terminal.core.session.sdk_session."
    mock_login = mocker.patch(path + "session_model.login")
    mock_hub_get_session = mocker.patch(path + "get_session")
    mock_hub_get_session.return_value = TEST_SESSION
    mock_login.return_value = status
    sdk_session.login(
        email=email, password=password, token=token, keep_session=keep_session
    )
    if has_session:
        mock_hub_get_session.assert_not_called()
    else:
        mock_hub_get_session.assert_called_once_with(
            email, password, token, keep_session
        )
    mock_login.assert_called_once_with(TEST_SESSION)