#NEWLINE# def test_finished_sessions2( self ) : #NEWLINE# #INDENT# session_id1 = self . create_session ( ( self . tm . time ( ) - 3600 ) ) #NEWLINE# session_id2 = self . create_session ( self . tm . time ( ) ) #NEWLINE# self . auc . add_user ( session_id1 ) #NEWLINE# self . auc . add_user ( session_id2 ) #NEWLINE# self . finished_reservations_store . put ( session_id2 ) #NEWLINE# expired_users = self . auc . check_expired_users ( ) #NEWLINE# self . assertEquals ( 2 , len ( expired_users ) ) #NEWLINE# self . assertEquals ( session_id2 , expired_users [ 0 ] ) #NEWLINE# self . assertEquals ( session_id1 , expired_users [ 1 ] ) #NEWLINE# expired_users = self . auc . check_expired_users ( ) #NEWLINE# self . assertEquals ( 0 , len ( expired_users ) )