def test_totp(self):
        for pair in self.test_vectors:
            time = pair['time']
            real_otp = pair['otp']

            tm = int(int(time)/30)
            tm = struct.pack('>q', tm)
            otp = yubi_goog.totp(self.test_secret, tm)
            self.assertEqual(otp, real_otp)
dataset/ETHPy150Open Ramblurr/yubi-goog/test.py/TestYubiGoog.test_totp/original