#NEWLINE# def test_generate_token_custom_ttl( self ) : #NEWLINE# #INDENT# token = self . cap . generate_token ( 10000 ) #NEWLINE# decoded = jwt . decode ( token , self . auth_token ) #NEWLINE# self . assertTrue ( ( decoded is not None ) ) #NEWLINE# self . assertEqual ( ( int ( time . time ( ) ) + 10000 ) , decoded [ 'exp' ] )