def METHOD_NAME(self):
    token30sec = AttestationToken(
        body={
            "exp": time() + 30,  # Expires in 30 seconds
            "iat": time(),
            "nbf": time(),  # Not valid before now.
        }
    )
    token30sec._validate_token()
    expired_token = AttestationToken(
        body={
            "exp": time() - 30,  # Expired 30 seconds ago
            "iat": time(),
            "nbf": time() + 5,  # Not valid for 5 seconds.
        }
    )
    with pytest.raises(AttestationTokenValidationException):
        expired_token._validate_token()
    early_token = AttestationToken(
        body={
            "exp": time() + 30,  # Expires in 30 seconds
            "iat": time(),
            "nbf": time() + 5,  # Not valid for 5 seconds.
        }
    )
    with pytest.raises(AttestationTokenValidationException):
        early_token._validate_token()
    # Specify 40 seconds of slack, so we're within the slack.
    # Token validation should start succeeding now because the slack
    # lets it work.
    expired_token._validate_token(validation_slack=40)
    early_token._validate_token(validation_slack=40)