def METHOD_NAME(self):
    db_token = Token(self.serial2, tokentype="motp")
    db_token.save()
    token = MotpTokenClass(db_token)
    token.update({"genkey": "1",
                  "motppin": self.motppin,
                  "pin": self.otppin})
    db_token = Token.query.filter(Token.serial == self.serial2).first()
    token = MotpTokenClass(db_token)
    # check that the userpin is set
    self.assertTrue(token.token.user_pin, token.token.user_pin)
    # check that the otp value is set
    self.assertTrue(token.token.key_enc, token.token.key_enc)