#NEWLINE# def test_expiration_time( self ) : #NEWLINE# #INDENT# grant = Grant ( ) #NEWLINE# assert ( grant . exp_in == 600 ) #NEWLINE# assert ( grant . grant_expiration_time == 0 ) #NEWLINE# grant = Grant ( 60 ) #NEWLINE# assert ( grant . exp_in == 60 ) #NEWLINE# grant = Grant ( ( - 1 ) , AR ) #NEWLINE# assert ( self . grant_expiration_time != 0 ) #NEWLINE# assert ( not grant . is_valid ( ) )