def METHOD_NAME(self, service, user, db_session):
    token = models.Token(userid=user.userid, value="foo")
    db_session.add(token)
    service.rename(user, "panda")
    updated_token = (
        db_session.query(models.Token).filter(models.Token.id == token.id).one()
    )
    assert updated_token.userid == user.userid