def METHOD_NAME(
    self, patched_st_warning, patched_get_session_state
):
    mock_session_state = MagicMock()
    mock_session_state.is_new_state_value.return_value = False
    patched_get_session_state.return_value = mock_session_state
    check_session_state_rules(5, key="the key")
    patched_st_warning.assert_not_called()