def METHOD_NAME(self, backend, params):
    secret = params["secret"]
    time = int(params["time"])
    totp_value = params["totp"]
    totp = TOTP(secret, 8, hashes.SHA512(), 30, backend)
    assert totp.generate(time) == totp_value