def METHOD_NAME(self):
    set_privacyidea_config("yubico.do_post", True)
    responses.add(responses.POST, YUBICO_URL,
                  body=self.success_body)
    db_token = Token.query.filter(Token.serial == self.serial1).first()
    token = YubicoTokenClass(db_token)
    otpcount = token.check_otp("vvbgidlghkhgndujklhhudbcuttkcklhvjktrjrt")
    # Nonce and hash do not match
    self.assertTrue(otpcount == -2, otpcount)
    set_privacyidea_config("yubico.do_post", False)