def METHOD_NAME(session, monkeypatch):  # pylint:disable=unused-argument
    """Assert User is updated from a JWT with new terms of use."""
    token = {
        'preferred_username': 'CP1234567',
        'firstname': 'Bobby',
        'lasname': 'Joe',
        'realm_access': {
            'roles': [
                'edit',
                'uma_authorization',
                'basic'
            ]
        },
        'sub': '1b20db59-19a0-4727-affe-c6f64309fd04'
    }
    patch_token_info(token, monkeypatch)
    user = User.create_from_jwt_token('Bobby', 'Joe')
    assert user.is_terms_of_use_accepted is False
    assert user.terms_of_use_accepted_version is None
    user = User.update_terms_of_use(True, 1)
    assert user.is_terms_of_use_accepted is True
    assert user.terms_of_use_accepted_version == '1'