def METHOD_NAME(self):
    token = init_token({"type": "tan",
                        "otpkey": OTPKEY})
    init_detail = token.get_init_detail()
    self.assertTrue("otps" in init_detail)
    otps = init_detail.get("otps")
    self.assertEqual(otps.get(0), "755224")
    self.assertEqual(otps.get(1), "287082")
    self.assertEqual(otps.get(2), "359152")
    # test authenticating in arbitrary order
    r = token.check_otp("287082")
    self.assertEqual(r, 1)
    r = token.check_otp("359152")
    self.assertEqual(r, 1)
    r = token.check_otp("755224")
    self.assertEqual(r, 1)
    # previous OTP
    r = token.check_otp("755224")
    self.assertEqual(r, -1)