def test_jwe_expired_error_with_iat_claim(self):
        expiry_seconds = 10
        claims = {jose.CLAIM_ISSUED_AT: 15 - int(time())}
        et = jose.serialize_compact(jose.encrypt(claims, rsa_pub_key))

        try:
            jose.legacy_decrypt(jose.deserialize_compact(et), rsa_priv_key,
                expiry_seconds=expiry_seconds)
            self.fail()  # expecting expired token
        except jose.Expired as e:
            pass

        expiration_time = claims[jose.CLAIM_ISSUED_AT] + expiry_seconds
        self.assertEquals(
            e.args[0],
            'Token expired at {}'.format(
                jose._format_timestamp(expiration_time)
            )
        )
dataset/ETHPy150Open Demonware/jose/tests.py/TestJWE.test_jwe_expired_error_with_iat_claim/swapped operands of `-`