def METHOD_NAME(self):
    db_token = Token.query.filter(Token.serial == self.serial1).first()
    token = MotpTokenClass(db_token)
    # Wrong OTP value
    r = token.check_otp("aba73b")
    self.assertTrue(r == -1, r)
    # check pin+otp:
    token.set_pin(self.otppin)
    r = token.authenticate("{0!s}aba73b".format(self.otppin))
    self.assertTrue(r[0], r)
    self.assertTrue(r[1] == -1, r)