def METHOD_NAME(self):
    """Verify that changing the otp len of a hmac token works.
    1. enroll hmac token and verify the next otp
    2. call admin/set to change the otp len and verify the next otp
    """
    serial = "hmac_one"
    pin = "123!"
    params = {
        "type": "hmac",
        "otplen": "6",
        "otpkey": seed,
        "hashlib": "sha1",
        "serial": serial,
        "pin": pin,
    }
    response = self.make_admin_request("init", params=params)
    assert "false" not in response
    otp = get_otp(key=seed, counter=1, digits=6, hashfunc=sha1)
    params = {"serial": serial, "pass": pin + otp}
    response = self.make_validate_request("check_s", params=params)
    assert "false" not in response
    # ----------------------------------------------------------------- --
    # now change the otp len for the hmac token and verify that it still
    # works
    params = {
        "serial": serial,
        "OtpLen": "8",
    }
    response = self.make_admin_request("set", params)
    assert "false" not in response
    otp = get_otp(key=seed, counter=2, digits=8, hashfunc=sha1)
    params = {"serial": serial, "pass": pin + otp}
    response = self.make_validate_request("check_s", params=params)
    assert "false" not in response