func TestClaimsExpiration(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"exp\"")
	goLaunch := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
	claims := jwt.NewClaims()
	exp, ok := claims.Expiration()
	assert.False(ok)
	none := claims.SetExpiration(goLaunch)
	assert.Equal(none, time.Time{})
	exp, ok = claims.Expiration()
	assert.Equal(exp.Unix(), goLaunch.Unix())
	assert.True(ok)
	old := claims.DeleteExpiration()
	assert.Equal(old.Unix(), exp.Unix())
	exp, ok = claims.Expiration()
	assert.False(ok)
}
// TestClaimsExpiration checks the setting, getting, and
// deleting of the expiration claim.
TestClaimsExpiration checks the setting, getting, and
deleting of the expiration claim.
// TestClaimsExpiration checks the setting getting and // deleting of the expiration claim .
func TestClaimsExpiration(t *testing.T) {
	assert := audit.NewTestingAssertion(t, true)
	assert.Logf("testing claim \"exp\"")
	goLaunch := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC)
	claims := jwt.NewClaims()
	exp, ok := claims.Expiration()
	assert.False(ok)
	none := claims.SetExpiration(goLaunch)
	assert.Equal(none, time.Time{})
	exp, ok = claims.Expiration()
	assert.Equal(exp.Unix(), goLaunch.Unix())
	assert.True(ok)
	old := claims.DeleteExpiration()
	assert.Equal(old.Unix(), exp.Unix())
	exp, ok = claims.Expiration()
	assert.False(ok)
}
func TestClaimsExpiration ( t * testing . T ) { assert := audit . NewTestingAssertion ( t , true ) assert . Logf ( " \" \" " ) goLaunch := time . Date ( 2009 , time . November , 10 , 23 , 0 , 0 , 0 , time . UTC ) claims := jwt . NewClaims ( ) exp , ok := claims . Expiration ( ) assert . False ( ok ) none := claims . SetExpiration ( goLaunch ) assert . Equal ( none , time . Time { } ) exp , ok = claims . Expiration ( ) assert . Equal ( exp . Unix ( ) , goLaunch . Unix ( ) ) assert . True ( ok ) old := claims . DeleteExpiration ( ) assert . Equal ( old . Unix ( ) , exp . Unix ( ) ) exp , ok = claims . Expiration ( ) assert . False ( ok ) }
TestClaimsExpiration checks the setting, getting, and
deleting of the expiration claim.
TestClaimsExpiration checks the setting getting and deleting of the expiration claim .